slackbuilds_ponce/desktop/wmakerconf/patches/patch-src_misc.c
Matteo Bernardini 5a8e0ee0b4 desktop/wmakerconf: Use (amended) freebsd patches, fix linking.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2021-04-18 00:09:01 -05:00

14 lines
485 B
C

--- src/misc.c.orig 2004-12-05 01:49:32 UTC
+++ src/misc.c
@@ -482,9 +482,9 @@ copy_file (const char *dst, const char *src)
if (dir) /* directory is destination */
{
closedir (dir);
- if (streq (dst, g_dirname (src)))
+ if (streq (dst, g_path_get_dirname (src)))
return 0;
- dst_name = g_strconcat (dst, "/", g_basename (src), NULL);
+ dst_name = g_strconcat (dst, "/", g_path_get_basename (src), NULL);
}
else
dst_name = g_strdup (dst);