blob: 41b9d389c3b5766f38ca049e293adfff926b3033 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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;
}
|