tcorrect string termination for tomb close invocation - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 22a65c7193c2c892e4fc5e84d4d0224b248d759a
DIR parent 89b76bcf065b4a722e49e4231a6fb722e856bb9a
HTML Author: Jaromil <jaromil@dyne.org>
Date: Wed, 9 Feb 2011 18:18:22 +0100
correct string termination for tomb close invocation
Diffstat:
M src/tomb-status.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/tomb-status.c b/src/tomb-status.c
t@@ -189,7 +189,7 @@ gboolean cb_close(GtkWidget *w, GdkEvent *e) {
for(c=0; read(pipefd[0], &buf, 1) > 0; c++)
map[c] = buf;
close(pipefd[0]);
- map[c+1] = '\0';
+ map[c] = '\n';
execlp("tomb", "tomb", "close", map, (char*)NULL);
_exit(1);
}