Fix bug in cli_uint()

This commit is contained in:
Andrew Bettison 2013-02-15 19:33:44 +10:30
parent 788b3e37b2
commit 682d1ecfb3

4
cli.c
View File

@ -254,8 +254,8 @@ int cli_optional_bundle_crypt_key(const char *arg)
int cli_uint(const char *arg)
{
register const char *s = arg;
while (isdigit(*s++))
;
while (isdigit(*s))
++s;
return s != arg && *s == '\0';
}