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.112 by ayin, Mon Aug 27 20:50:38 2007 UTC vs.
Revision 1.113 by ayin, Sat Sep 8 20:54:51 2007 UTC

756 strncpy (newargstr, arg, NEWARGLIM - 1); 756 strncpy (newargstr, arg, NEWARGLIM - 1);
757 newargstr[NEWARGLIM - 1] = '\0'; 757 newargstr[NEWARGLIM - 1] = '\0';
758 newarg = newargstr; 758 newarg = newargstr;
759 } 759 }
760 760
761 rxvt_Str_trim (newarg); 761 if (*newarg == '\0')
762 if (*newarg == '\0' || (n = rxvt_Str_escaped (newarg)) == 0)
763 return -1; 762 return -1;
764 763
765 keyboard->register_user_translation (sym, state, newarg); 764 keyboard->register_user_translation (sym, state, newarg);
766 return 1; 765 return 1;
767} 766}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines