]> git.mdlowis.com Git - proto/aos.git/commitdiff
added efreadline()
authorMichael D. Lowis <mike.lowis@gentex.com>
Fri, 11 Dec 2020 18:07:56 +0000 (13:07 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Fri, 11 Dec 2020 18:07:56 +0000 (13:07 -0500)
lib/a/efreadline.c

index 39f180e08e14a99b0d34d18a46c4d222a9f34cf8..c9cef61540425e742b7065dd0383638580d106f0 100644 (file)
@@ -2,10 +2,10 @@
 
 char* efreadline(FILE* input)
 {
-    size_t size  = 8;
+    size_t size  = 32;
     size_t index = 0;
     char*  str = (char*)emalloc(size);
-    memset(str, 0, 8);
+    memset(str, 0, size);
     if (feof(input))
     {
         free(str);