* server.c (main): Relax numerical bases supported for the pid of

the --attach command line argument.
This commit is contained in:
Pedro Alves 2007-12-03 01:34:09 +00:00
parent 5ca906e670
commit 6c2d16d2d3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
* server.c (main): Relax numerical bases supported for the pid of
the --attach command line argument.
2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
* win32-low.c (win32_attach): Call OpenProcess before

View File

@ -880,7 +880,7 @@ main (int argc, char *argv[])
{
if (argc == 4
&& argv[3][0] != '\0'
&& (pid = strtoul (argv[3], &arg_end, 10)) != 0
&& (pid = strtoul (argv[3], &arg_end, 0)) != 0
&& *arg_end == '\0')
{
;