diff options
Diffstat (limited to 'libc/stdio/getdelim.c')
-rw-r--r-- | libc/stdio/getdelim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/getdelim.c b/libc/stdio/getdelim.c index 99d48bb32..f8341cb0d 100644 --- a/libc/stdio/getdelim.c +++ b/libc/stdio/getdelim.c @@ -58,13 +58,13 @@ size_t getdelim(char **linebuf, size_t *linebufsz, int delimiter, FILE *file) return -1; } } - *linebuf[idx++] = (char)ch; + (*linebuf)[idx++] = (char)ch; if ((char)ch == delimiter) break; } if (idx != 0) - *linebuf[idx] = 0; + (*linebuf)[idx] = 0; return idx; } |