diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-05-27 17:48:57 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-05-27 17:48:57 +0200 |
commit | 77d8a7bef39cc0ec3d20dad6d877cc2d7c67ae41 (patch) | |
tree | 1aa7db8a521efacc66f81cc38b0142a94d8b191d /src | |
parent | ef45d4a4d03ae33f20b7459357f72aebba0d2614 (diff) |
allow hexadecimal --xid argument
Diffstat (limited to 'src')
-rw-r--r-- | src/dillo.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dillo.cc b/src/dillo.cc index 53fae4d3..238cdb3f 100644 --- a/src/dillo.cc +++ b/src/dillo.cc @@ -85,7 +85,7 @@ static const CLI_options Options[] = { " -v, --version Display version info and exit."}, {"-x", "--xid", 1, DILLO_CLI_XID, " -x, --xid XID Open first Dillo window in an existing\n" - " window whose window ID is XID (decimal)."}, + " window whose window ID is XID."}, {NULL, NULL, 0, DILLO_CLI_NONE, NULL} }; @@ -230,10 +230,9 @@ int main(int argc, char **argv) case DILLO_CLI_XID: { char *end; - xid = strtol(opt_argv[0], &end, 10); + xid = strtol(opt_argv[0], &end, 0); if (*end) { - fprintf(stderr, "XID argument \"%s\" not valid. Must be an " - "unsigned decimal number.\n",opt_argv[0]); + fprintf(stderr, "XID argument \"%s\" not valid.\n",opt_argv[0]); return -1; } break; |