diff --git a/src/util.c b/src/util.c index 77ec10044..c741647c2 100644 --- a/src/util.c +++ b/src/util.c @@ -868,7 +868,7 @@ char *get_current_wd (char *buffer, int size) return NULL; } - strncpy (buffer, p, len); + memcpy (buffer, p, len); g_free (p); return buffer;