mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 20:47:09 +02:00
just to be safe, strlen + 1 allocated
This commit is contained in:
parent
92b289e100
commit
627f9c5973
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue