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

Comparing rxvt-unicode/src/xdefaults.C (file contents):
Revision 1.142 by sf-exg, Wed Jan 6 12:10:44 2010 UTC vs.
Revision 1.143 by sf-exg, Sat Jan 30 20:26:04 2010 UTC

554#ifdef KEYSYM_RESOURCE 554#ifdef KEYSYM_RESOURCE
555 else if (!strncmp (opt, "keysym.", sizeof ("keysym.") - 1)) 555 else if (!strncmp (opt, "keysym.", sizeof ("keysym.") - 1))
556 { 556 {
557 if (i+1 < argc) 557 if (i+1 < argc)
558 { 558 {
559 char *res = (char *)malloc (strlen (opt) + strlen (argv[++i]) + 6); 559 char *res = rxvt_temp_buf<char> (strlen (opt) + strlen (argv[++i]) + 6);
560 sprintf (res, "*.%s: %s\n", opt, argv[i]); 560 sprintf (res, "*.%s: %s\n", opt, argv[i]);
561 XrmPutLineResource (&option_db, res); 561 XrmPutLineResource (&option_db, res);
562 free (res);
563 } 562 }
564 } 563 }
565#endif 564#endif
566 else 565 else
567 { 566 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines