ntoab: Make sure not to get stuck on base 1.

* lib/mes/ntoab.c (ntoab): Make sure not to get stuck on base 1.
This commit is contained in:
Danny Milosavljevic 2020-06-03 20:56:51 +02:00
parent 1f47a76e7a
commit b0347bf53d
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -27,7 +27,7 @@ ntoab (long x, int base, int signed_p)
static char itoa_buf[20];
char *p = itoa_buf + 11;
*p-- = 0;
assert(base > 0);
assert(base > 1);
int sign_p = 0;
unsigned long u;