Should be using strlen instead of sizeof.
modified: src/nmstermio.c
This commit is contained in:
parent
56df5f3de5
commit
1c8f8808d9
@ -264,7 +264,7 @@ int nmstermio_get_cursor_row(void) {
|
|||||||
|
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
|
|
||||||
write(STDOUT_FILENO, cmd, sizeof(cmd));
|
write(STDOUT_FILENO, cmd, strlen(cmd));
|
||||||
|
|
||||||
r = read(STDIN_FILENO, buf, sizeof(buf));
|
r = read(STDIN_FILENO, buf, sizeof(buf));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user