aboutsummaryrefslogtreecommitdiff
path: root/osdep-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep-linux.c')
-rw-r--r--osdep-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep-linux.c b/osdep-linux.c
index 46aea68e..706a273f 100644
--- a/osdep-linux.c
+++ b/osdep-linux.c
@@ -50,7 +50,7 @@ osdep_get_name(int fd, unused char *tty)
while ((ch = fgetc(f)) != EOF) {
if (ch == '\0')
break;
- buf = xrealloc(buf, 1, len + 2);
+ buf = xrealloc(buf, len + 2);
buf[len++] = ch;
}
if (buf != NULL)