X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.c;h=a167122cd9dcf6412ebc297fb902b3336a2465e3;hb=c88c2de1c9cd6795b30c34990a565d18b69221e7;hp=c45304e88d88bd34368017edd87e0651e7d9d1f7;hpb=9717b1a55d60d992c16e66e2ae5bdfb42f80aca8;p=collectd.git diff --git a/src/daemon/common.c b/src/daemon/common.c index c45304e8..a167122c 100644 --- a/src/daemon/common.c +++ b/src/daemon/common.c @@ -150,7 +150,7 @@ char *sstrdup(const char *s) { ERROR("sstrdup: Out of memory."); exit(3); } - memcpy(r, s, sizeof(char) * sz); + memcpy(r, s, sz); return (r); } /* char *sstrdup */