do_preserve_msg():
- Unsplit error message into a single fprintf call (Jordi).
+- winio.c:
+ bottombars()
+ - Change strcpy of gettext() "Up" string to strncpy of max
+ width 8, to stop stupid strcpy crash.
GNU nano 1.1.99pre1 - 2003.01.17
- General:
- New date format for NEWS and ChangeLog.
void bottombars(const shortcut *s)
{
int i, j, numcols;
- char keystr[4];
+ char keystr[9];
int slen;
if (ISSET(NO_HELP))
strcpy(keystr, "^ ");
#ifndef NANO_SMALL
else if (s->val == KEY_UP)
- strcpy(keystr, _("Up"));
+ strncpy(keystr, _("Up"), 8);
#endif /* NANO_SMALL */
else if (s->val > 0) {
if (s->val < 64)