long unsigned int...

This commit is contained in:
Andrew Pamment 2017-04-22 18:34:19 +10:00
parent 9d612f9726
commit 85cfb1dec8

View File

@ -93,7 +93,7 @@ unsigned long generate_msgid() {
dolog("Unable to open message id log"); dolog("Unable to open message id log");
} }
} }
sprintf(buffer, "%X", lastid); sprintf(buffer, "%lX", lastid);
return strtoul(&buffer[strlen(buffer) - 8], NULL, 16); return strtoul(&buffer[strlen(buffer) - 8], NULL, 16);
} }