* util.c (get_current_wd): We know there is just one '\0' byte

in p, at p[len - 1].
This commit is contained in:
Andrew V. Samoilov 2004-09-03 22:05:13 +00:00
parent 2253379eb8
commit 7c9f703060
1 changed files with 1 additions and 1 deletions

View File

@ -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;