We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9fa574 commit 4e01becCopy full SHA for 4e01bec
src/memory_pool.c
@@ -65,7 +65,9 @@ static int CTL_SUBTREE_HANDLER(default)(void *ctx,
65
if (CTL_DEFAULT_ENTRIES[i][0] == '\0' ||
66
strcmp(CTL_DEFAULT_ENTRIES[i], extra_name) == 0) {
67
strncpy(CTL_DEFAULT_ENTRIES[i], extra_name, UMF_DEFAULT_LEN);
68
+ CTL_DEFAULT_ENTRIES[i][UMF_DEFAULT_LEN - 1] = '\0';
69
strncpy(CTL_DEFAULT_VALUES[i], arg, UMF_DEFAULT_LEN);
70
+ CTL_DEFAULT_VALUES[i][UMF_DEFAULT_LEN - 1] = '\0';
71
break;
72
}
73
0 commit comments