Skip to content

Commit 4452361

Browse files
committed
Fix bug in timestamp test
1 parent 1c59c5a commit 4452361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void time_stamp_syntax(void **state)
9494
" GNazPwQKkRN20XPXV6nwwfoXmJQbsLNrLfkG\n" \
9595
" J5D6fwFm8nN+6pBzeDQfsS3Ap3o= )"
9696

97-
size_t size = strlen(FORMAT) + ZONE_BLOCK_SIZE + 1;
97+
size_t size = strlen(FORMAT) + strlen(tests[i].timestamp) + ZONE_BLOCK_SIZE + 1;
9898
char *rr = malloc((size_t)size + 1);
9999
(void)snprintf(rr, size, FORMAT, tests[i].timestamp);
100100

0 commit comments

Comments
 (0)