diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-03-27 19:10:16 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-03-27 19:10:16 +0000 |
commit | 506c7aa0d5a2920f15435738eae9948f2ba5e6a1 (patch) | |
tree | 7a78c651d81959a4e5569b347b7f67128944fa61 /gdb/gdbserver/server.c | |
parent | de6a76fdbfd7337eda8a746209c59087d8d1dcee (diff) | |
download | fsf-binutils-gdb-506c7aa0d5a2920f15435738eae9948f2ba5e6a1.zip fsf-binutils-gdb-506c7aa0d5a2920f15435738eae9948f2ba5e6a1.tar.gz fsf-binutils-gdb-506c7aa0d5a2920f15435738eae9948f2ba5e6a1.tar.bz2 |
2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
* server.c (main): Correct strtoul check.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 70ecd53..04b6265 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -727,7 +727,7 @@ main (int argc, char *argv[]) if (argc >= 3 && strcmp (argv[2], "--attach") == 0) { if (argc == 4 - && argv[3] != '\0' + && argv[3][0] != '\0' && (pid = strtoul (argv[3], &arg_end, 10)) != 0 && *arg_end == '\0') { |