ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/misc.C
(Generate patch)

Comparing rxvt-unicode/src/misc.C (file contents):
Revision 1.50 by ayin, Tue Dec 18 01:36:24 2007 UTC vs.
Revision 1.51 by ayin, Mon Jan 7 12:41:31 2008 UTC

285 for (l = 0, t = s; l < n; l++) 285 for (l = 0, t = s; l < n; l++)
286 { 286 {
287 for ( ; *t && *t != ','; t++) ; 287 for ( ; *t && *t != ','; t++) ;
288 p = t - s; 288 p = t - s;
289 ret[l] = (char *)malloc (p + 1); 289 ret[l] = (char *)malloc (p + 1);
290 strncpy (ret[l], s, p); 290 memcpy (ret[l], s, p);
291 ret[l][p] = '\0'; 291 ret[l][p] = '\0';
292 rxvt_strtrim (ret[l]); 292 rxvt_strtrim (ret[l]);
293 s = ++t; 293 s = ++t;
294 } 294 }
295 295

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines