Fix potential buffer overruns found by GCC 8.2

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-10-15 22:56:23 +02:00
1 parent 67cd88cd23
commit 510b36645b
4 files changed
+24 -19

No files matched your search

+1 -1
View File
@@ -267,7 +267,7 @@ char *rlim2str(int rlim)
char *lim2str(struct rlimit *rlim)
{
char tmp[20];
char tmp[25];
static char buf[42];
memset(buf, 0, sizeof(buf));