mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-19 01:46:33 +02:00
OSdep: Update for xrealloc() change
This updates the code for xrealloc() which now only takes two parameters.
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user