[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/libkcal/versit
From: Waldo Bastian <bastian () kde ! org>
Date: 2002-12-15 21:49:28
[Download RAW message or body]
CVS commit by waba:
strcpy fix
M +4 -3 vobject.c 1.2
--- kdepim/libkcal/versit/vobject.c #1.1:1.2
@@ -1227,7 +1227,8 @@ static void writeGroup(OFile *fp, VObjec
strcpy(buf1,NAME_OF(o));
while ((o=isAPropertyOf(o,VCGroupingProp)) != 0) {
- strcpy(buf2,STRINGZ_VALUE_OF(o));
- strcat(buf2,".");
- strcat(buf2,buf1);
+ strncpy(buf2,STRINGZ_VALUE_OF(o),sizeof(buf2));
+ buf2[sizeof(buf2)] = '\0';
+ strncat(buf2,".",sizeof(buf2)-strlen(buf2));
+ strncat(buf2,buf1,sizeof(buf2)-strlen(buf2));
strcpy(buf1,buf2);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic