提交 403f14ef 编写于 作者: T ths

Fix environ termination, by Andreas Schwab.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3027 c046a42c-6fe2-441c-8c8c-71466251a162
上级 8dfdb87c
......@@ -1819,7 +1819,7 @@ int main(int argc, char **argv)
continue;
*(dst++) = strdup(*wrk);
}
dst = NULL; /* NULL terminate target_environ */
*dst = NULL; /* NULL terminate target_environ */
if (loader_exec(filename, argv+optind, target_environ, regs, info) != 0) {
printf("Error loading %s\n", filename);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册