From 2e8f6805eb911e3de82fc43e3c90c8d425df04a8 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Thu, 16 Oct 2014 16:50:23 +0100 Subject: [PATCH] OSdep: Update for xrealloc() change This updates the code for xrealloc() which now only takes two parameters. --- osdep-cygwin.c | 2 +- osdep-linux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/osdep-cygwin.c b/osdep-cygwin.c index 01d2d0c2..f28df376 100644 --- a/osdep-cygwin.c +++ b/osdep-cygwin.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) 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)