Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Update utils.c

use strncat instead strcat.
  • Loading branch information...
JesseEisen committed Apr 25, 2017
1 parent bfa893f commit 3d0105731bb893397cd356c72f2fe68d53d8d8c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/utils.c
@@ -62,7 +62,7 @@ read_until_eof(FILE *stream) {
size_t n = fread(buf, 1, 1024, stream);
len += strlen(buf);
str = realloc(str, len);
strcat(str, buf);
strncat(str, buf, n);
}

return str;

0 comments on commit 3d01057

Please sign in to comment.
You can’t perform that action at this time.