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

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.227 by root, Fri Jul 28 17:16:42 2006 UTC vs.
Revision 1.229 by root, Fri Aug 18 23:03:31 2006 UTC

56static char curlocale[128], savelocale[128]; 56static char curlocale[128], savelocale[128];
57 57
58bool 58bool
59rxvt_set_locale (const char *locale) NOTHROW 59rxvt_set_locale (const char *locale) NOTHROW
60{ 60{
61 int len = strlen (locale) + 1; 61 int size = strlen (locale) + 1;
62 62
63 if (len > sizeof (curlocale)) 63 if (size > sizeof (curlocale))
64 rxvt_fatal ("locale string too long, aborting.\n"); 64 rxvt_fatal ("locale string too long, aborting.\n");
65 65
66 if (!locale || !memcmp (locale, curlocale, len)) 66 if (!locale || !memcmp (locale, curlocale, size))
67 return false; 67 return false;
68 68
69 memcpy (curlocale, locale, len); 69 memcpy (curlocale, locale, size);
70 setlocale (LC_CTYPE, curlocale); 70 setlocale (LC_CTYPE, curlocale);
71 return true; 71 return true;
72} 72}
73 73
74void 74void
270 } 270 }
271 271
272 clear (); 272 clear ();
273 } 273 }
274 274
275 delete pix_colors_focused; 275 delete [] pix_colors_focused;
276#if OFF_FOCUS_FADING 276#if OFF_FOCUS_FADING
277 delete pix_colors_unfocused; 277 delete [] pix_colors_unfocused;
278#endif 278#endif
279 279
280 displays.put (display); 280 displays.put (display);
281 281
282 scr_release (); 282 scr_release ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines