mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
When parsing a '@' option verify that the whole argument, rather than only the
first character, is numeric. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4548 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a588d67bc2
commit
db0eac61e4
1 changed files with 1 additions and 1 deletions
|
|
@ -637,7 +637,7 @@ static int get_cmd_options(char **data, int ignore_unknown,
|
||||||
if (option == NULL)
|
if (option == NULL)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (*optlist[pos] == '@' && !i_isdigit(**data))
|
if (*optlist[pos] == '@' && !is_numeric(*data, ' '))
|
||||||
break; /* expected a numeric argument */
|
break; /* expected a numeric argument */
|
||||||
|
|
||||||
/* save the argument */
|
/* save the argument */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue