mc/mc-4.6.1-NULL.patch

45 lines
1.5 KiB
Diff

--- mc-4.6.1/src/cmd.c
+++ mc-4.6.1/src/cmd.c
@@ -1209,7 +1209,7 @@
sync_profiles ();
str = g_strconcat ( _(" Setup saved to ~/"), PROFILE_NAME, (char *) NULL);
- message (0, _(" Setup "), str);
+ message (0, _(" Setup "), "%s", str);
g_free (str);
}
--- mc-4.6.1/src/hotlist.c
+++ mc-4.6.1/src/hotlist.c
@@ -1427,7 +1427,7 @@
msg = g_strconcat (_("MC was unable to write ~/"), HOTLIST_FILENAME,
_(" file, your old hotlist entries were not deleted"), (char *) NULL);
- message (D_ERROR, _(" Hotlist Load "), msg);
+ message (D_ERROR, _(" Hotlist Load "), "%s", msg);
g_free (msg);
}
} else {
--- mc-4.6.1/vfs/ftpfs.c
+++ mc-4.6.1/vfs/ftpfs.c
@@ -829,7 +829,7 @@
/* If the remote server is an Amiga a leading slash
might be missing. MC needs it because it is used
as separator between hostname and path internally. */
- return g_strconcat( "/", bufp, 0);
+ return g_strconcat( "/", bufp, (char *) NULL);
}
} else {
ftpfs_errno = EIO;
--- mc-4.6.1/vfs/smbfs.c
+++ mc-4.6.1/vfs/smbfs.c
@@ -546,7 +546,7 @@
if (p)
my_remote = p; /* strip off share/service name */
/* create remote filename as understood by smb clientgen */
- result = g_strconcat (my_remote, trailing_asterik ? "/*" : "", 0);
+ result = g_strconcat (my_remote, trailing_asterik ? "/*" : "", (char *) NULL);
unix_to_dos (result, /* inplace = */ 1); /* code page conversion */
str_replace(result, '/', '\\');
return result;