commit d8361df05660ed977bcc8801df6af5e43e91c4d3 from: Neels Hofmeyr date: Sat Oct 24 01:38:39 2020 UTC strncat commit - 6c6e6e508e69acc5a20e0b15296af8bf1a71d535 commit + d8361df05660ed977bcc8801df6af5e43e91c4d3 blob - 92c42e1de1fdc900fa3a3e8cb4cbc92cacb295c7 blob + 9029d9b30bafb245aecfb51c7f4304f50726dd79 --- lib/diff_output.c +++ lib/diff_output.c @@ -289,7 +289,7 @@ diff_output_match_function_prototype(char **prototype, state = " (public)"; } else { if (state) /* don't care about truncation */ - strlcat(buf, state, sizeof(buf)); + strncat(buf, state, sizeof(buf)); *prototype = strdup(buf); if (*prototype == NULL) return ENOMEM;