mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-25 16:08:24 +00:00
correct string termination for tomb close invocation
This commit is contained in:
parent
89b76bcf06
commit
22a65c7193
@ -189,7 +189,7 @@ gboolean cb_close(GtkWidget *w, GdkEvent *e) {
|
|||||||
for(c=0; read(pipefd[0], &buf, 1) > 0; c++)
|
for(c=0; read(pipefd[0], &buf, 1) > 0; c++)
|
||||||
map[c] = buf;
|
map[c] = buf;
|
||||||
close(pipefd[0]);
|
close(pipefd[0]);
|
||||||
map[c+1] = '\0';
|
map[c] = '\n';
|
||||||
execlp("tomb", "tomb", "close", map, (char*)NULL);
|
execlp("tomb", "tomb", "close", map, (char*)NULL);
|
||||||
_exit(1);
|
_exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user