Mercurial > hg > xemacs-beta
comparison src/menubar-msw.c @ 337:fbbf69b4e8a7 r21-0-66
Import from CVS: tag r21-0-66
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:51:02 +0200 |
parents | 03446687b7cc |
children | 972bbb6d6ca2 |
comparison
equal
deleted
inserted
replaced
336:fe0a93612022 | 337:fbbf69b4e8a7 |
---|---|
141 while ((ptr=memchr (ptr, '&', ll-(ptr-buf))) != NULL) | 141 while ((ptr=memchr (ptr, '&', ll-(ptr-buf))) != NULL) |
142 { | 142 { |
143 if (ll+2 >= MAX_MENUITEM_LENGTH) | 143 if (ll+2 >= MAX_MENUITEM_LENGTH) |
144 signal_simple_error ("Menu item produces too long displayable string", | 144 signal_simple_error ("Menu item produces too long displayable string", |
145 pgui_item->name); | 145 pgui_item->name); |
146 memmove (ptr+1, ptr, ll-(ptr-buf)); | 146 memmove (ptr+1, ptr, (ll-(ptr-buf))+1); |
147 ll++; | 147 ll++; |
148 ptr+=2; | 148 ptr+=2; |
149 } | 149 } |
150 | 150 |
151 /* Replace XEmacs accelerator '%_' with Windows accelerator '&' */ | 151 /* Replace XEmacs accelerator '%_' with Windows accelerator '&' */ |