From 5aaec6a990cfe8176c8a92664e3388ca8e7caefd Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 19 Sep 2017 14:12:10 +0300 Subject: [PATCH] Lint for strncpy return value --- src/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 6e21a0636..8ca16bab2 100644 --- a/src/files.c +++ b/src/files.c @@ -2760,7 +2760,7 @@ const char *line; ced->line_num++; ced->origline_shown = FALSE; if (line && line[0]) { - strncpy(ced->origline, line, sizeof(ced->origline)-1); + (void) strncpy(ced->origline, line, sizeof(ced->origline)-1); ced->origline[sizeof(ced->origline)-1] = '\0'; } else ced->origline[0] = '\0'; -- 2.40.0