mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 16:43:11 +01:00
OSdep: Update for xrealloc() change
This updates the code for xrealloc() which now only takes two parameters.
This commit is contained in:
parent
a77355b6bf
commit
2e8f6805eb
@ -50,7 +50,7 @@ osdep_get_name(int fd, unused char *tty)
|
|||||||
while ((ch = fgetc(f)) != EOF) {
|
while ((ch = fgetc(f)) != EOF) {
|
||||||
if (ch == '\0')
|
if (ch == '\0')
|
||||||
break;
|
break;
|
||||||
buf = xrealloc(buf, 1, len + 2);
|
buf = xrealloc(buf, len + 2);
|
||||||
buf[len++] = ch;
|
buf[len++] = ch;
|
||||||
}
|
}
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
|
@ -50,7 +50,7 @@ osdep_get_name(int fd, unused char *tty)
|
|||||||
while ((ch = fgetc(f)) != EOF) {
|
while ((ch = fgetc(f)) != EOF) {
|
||||||
if (ch == '\0')
|
if (ch == '\0')
|
||||||
break;
|
break;
|
||||||
buf = xrealloc(buf, 1, len + 2);
|
buf = xrealloc(buf, len + 2);
|
||||||
buf[len++] = ch;
|
buf[len++] = ch;
|
||||||
}
|
}
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user