aboutsummaryrefslogtreecommitdiff
path: root/osdep-linux.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2014-10-16 16:50:23 +0100
committerThomas Adam <thomas@xteddy.org>2014-10-16 16:50:23 +0100
commit2e8f6805eb911e3de82fc43e3c90c8d425df04a8 (patch)
treee93c006265b960f8e39384258d97e712cd3020c0 /osdep-linux.c
parenta77355b6bf9a0beb2e9d0a8b9613266984bb598d (diff)
downloadrtmux-2e8f6805eb911e3de82fc43e3c90c8d425df04a8.tar.gz
rtmux-2e8f6805eb911e3de82fc43e3c90c8d425df04a8.tar.bz2
rtmux-2e8f6805eb911e3de82fc43e3c90c8d425df04a8.zip
OSdep: Update for xrealloc() change
This updates the code for xrealloc() which now only takes two parameters.
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)