summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Utils/daemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Utils/daemon.cpp b/lib/Utils/daemon.cpp
index 7d60ce31..0c4b4cef 100644
--- a/lib/Utils/daemon.cpp
+++ b/lib/Utils/daemon.cpp
@@ -44,7 +44,7 @@ static char *append_escaped(char *start, const char *s)
*dst++ = '\'';
}
- strncpy(dst, s, (p - old_p));
+ strncpy(dst, (char *)old_p, (p - old_p));
dst += (p - old_p);
if (*p == '\0')