Skip to content

Commit

Permalink
Fixed buffer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 27, 2016
1 parent 3df4fc0 commit 08eaf1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lx_loader.c
Expand Up @@ -249,7 +249,7 @@ static __attribute__((noreturn)) void runLxModule(const LxModule *lxmod, const i
// !!! FIXME: eventually, the environment table looks like this (double-null to terminate list): var1=a\0var2=b\0var3=c\0\0
// The command line, if I'm reading the Open Watcom __OS2Main() implementation correctly, looks like this...
// \0programname\0argv0\0argv1\0argvN\0
size_t len = 0;
size_t len = strlen(argv[0]) + 1;
for (int i = 0; i < argc; i++) {
len += strlen(argv[i]) + 1;
}
Expand Down

0 comments on commit 08eaf1f

Please sign in to comment.