mirror of https://github.com/MidnightCommander/mc
* vfs.c (mc_get_current_wd): Use g_strlcpy() to avoid unneeded
padding and silence Valgrind.
This commit is contained in:
parent
4014009077
commit
cdd8f8ce86
|
@ -1,3 +1,8 @@
|
||||||
|
2003-09-22 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* vfs.c (mc_get_current_wd): Use g_strlcpy() to avoid unneeded
|
||||||
|
padding and silence Valgrind.
|
||||||
|
|
||||||
2003-09-09 Andrew V. Samoilov <sav@bcs.zp.ua>
|
2003-09-09 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
* samba/libsmb/namequery.c (_interpret_node_status): Comment
|
* samba/libsmb/namequery.c (_interpret_node_status): Comment
|
||||||
|
|
|
@ -651,7 +651,7 @@ mc_get_current_wd (char *buffer, int size)
|
||||||
{
|
{
|
||||||
const char *cwd = _vfs_get_cwd ();
|
const char *cwd = _vfs_get_cwd ();
|
||||||
|
|
||||||
strncpy (buffer, cwd, size - 1);
|
g_strlcpy (buffer, cwd, size - 1);
|
||||||
buffer[size - 1] = 0;
|
buffer[size - 1] = 0;
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue