@ -22,8 +22,6 @@ static char *prompt(const char *prefix)
return NULL;
while ((c = getchar()) && c != '\n') {
putchar(c);
if (nbytes + 1 >= nalloc_bytes) {
nalloc_bytes *= 2;
@ -36,7 +34,6 @@ static char *prompt(const char *prefix)
line[nbytes++] = c;
}
printf("\n");
line[nbytes] = '\0';
return line;