summaryrefslogtreecommitdiff
path: root/hugin_syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'hugin_syslog.c')
-rw-r--r--hugin_syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugin_syslog.c b/hugin_syslog.c
index 6803cc6..9c705ca 100644
--- a/hugin_syslog.c
+++ b/hugin_syslog.c
@@ -126,7 +126,7 @@ void hug_syslog_init(const char* host, int port)
strncpy(execname, bufptr+1, SYSLOG_LENOFEXECNAME-1);
}
else {
- strcpy(execname, "\0");
+ strncpy(execname, buf, SYSLOG_LENOFEXECNAME-1);
}
// printf("\tRunning as %s with pid %d\n", execname, pid);