Commit 403f14ef1e6f481d9b833e53846c421cf76607e3

Authored by ths
1 parent 8dfdb87c

Fix environ termination, by Andreas Schwab.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3027 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
linux-user/main.c
... ... @@ -1819,7 +1819,7 @@ int main(int argc, char **argv)
1819 1819 continue;
1820 1820 *(dst++) = strdup(*wrk);
1821 1821 }
1822   - dst = NULL; /* NULL terminate target_environ */
  1822 + *dst = NULL; /* NULL terminate target_environ */
1823 1823  
1824 1824 if (loader_exec(filename, argv+optind, target_environ, regs, info) != 0) {
1825 1825 printf("Error loading %s\n", filename);
... ...