OSdep: Update for xrealloc() change

This updates the code for xrealloc() which now only takes two parameters.
This commit is contained in:
Thomas Adam 2014-10-16 16:50:23 +01:00
parent a77355b6bf
commit 2e8f6805eb
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)