Skip to content

Commit f031363

Browse files
committed
test BUGFIX buffer limit
1 parent d2ef340 commit f031363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_crl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test_msg_callback(const struct nc_session *session, NC_VERB_LEVEL level, const c
4444
(void) session;
4545

4646
if (strstr(msg, expected)) {
47-
strncpy(buffer, msg, 512);
47+
strncpy(buffer, msg, 511);
4848
}
4949

5050
printf("%s\n", msg);

0 commit comments

Comments
 (0)