just to be safe, strlen + 1 allocated

This commit is contained in:
kakwa 2016-09-02 07:43:39 +02:00
parent 92b289e100
commit 627f9c5973
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ int rfc3161_handler(struct mg_connection *conn, void *context) {
"uts-server, a simple RFC 3161 timestamp server");
}
if (serial_id == NULL) {
serial_id = calloc(8, sizeof(char));
serial_id = calloc(9, sizeof(char));
serial_id = rand_string(serial_id, 8);
}