mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00: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