diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-26 20:55:43 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-26 20:55:43 +0000 |
commit | fd5f393ababcf13db74dfd26e53650abe34dedd7 (patch) | |
tree | d8b034297c5643d023a940ebccd7d78fa665c677 /linux-user | |
parent | 4af984a76a7d1b021b91027d5c4219882ea6cbdf (diff) | |
download | hqemu-fd5f393ababcf13db74dfd26e53650abe34dedd7.zip hqemu-fd5f393ababcf13db74dfd26e53650abe34dedd7.tar.gz |
Remove fixed length commandline buffers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4111 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 234a6dc..2ce47a4 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1945,7 +1945,7 @@ int main(int argc, char **argv) char **target_environ, **wrk, **dst; if (argc <= 1) - usage(); + usage(1); /* init debug */ cpu_set_log_filename(DEBUG_LOGFILE); @@ -1983,7 +1983,7 @@ int main(int argc, char **argv) r = argv[optind++]; x86_stack_size = strtol(r, (char **)&r, 0); if (x86_stack_size <= 0) - usage(); + usage(1); if (*r == 'M') x86_stack_size *= 1024 * 1024; else if (*r == 'k' || *r == 'K') |