summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-src-profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mc/files/patch-src-profile.c')
-rw-r--r--misc/mc/files/patch-src-profile.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src-profile.c b/misc/mc/files/patch-src-profile.c
new file mode 100644
index 000000000000..41b9d389c3b5
--- /dev/null
+++ b/misc/mc/files/patch-src-profile.c
@@ -0,0 +1,12 @@
+--- src/profile.c.orig Mon Jan 20 20:33:02 2003
++++ src/profile.c Tue Jun 15 03:15:09 2004
+@@ -325,8 +325,7 @@
+
+ s = GetSetProfileChar (set, AppName, KeyName, Default, FileName);
+ if (!set){
+- ReturnedString [Size-1] = 0;
+- strncpy (ReturnedString, s, Size-1);
++ g_strlcpy (ReturnedString, s, Size);
+ }
+ return 1;
+ }