(parseid): Switch id encoding from base 16 to base 36. This gives us

another 20 single digit ids before we have to risk breaking clients by
going to multiple digits.
This commit is contained in:
Markus Armbruster 2007-12-15 06:52:50 +00:00
parent 63a88dbb1d
commit c87f824253

View file

@ -92,7 +92,7 @@ parseid(char *line)
char *end; char *end;
long id; long id;
id = strtol(line, &end, 16); id = strtol(line, &end, 36);
if (end == line || *end != ' ') { if (end == line || *end != ' ') {
fprintf(stderr, "Malformed id in line %s", line); fprintf(stderr, "Malformed id in line %s", line);
id = -1; id = -1;