mirror of git://git.sv.gnu.org/nano.git
- winio.c:bottombars() - Change strcpy of gettext() Up string to strncpy of max width 8, to stop stupid strcpy crash
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1385 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
d66349963c
commit
3bbc416a73
|
@ -10,6 +10,10 @@ CVS Code -
|
||||||
do_preserve_msg():
|
do_preserve_msg():
|
||||||
- Unsplit error message into a single fprintf call (Jordi).
|
- 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
|
GNU nano 1.1.99pre1 - 2003.01.17
|
||||||
- General:
|
- General:
|
||||||
- New date format for NEWS and ChangeLog.
|
- New date format for NEWS and ChangeLog.
|
||||||
|
|
4
winio.c
4
winio.c
|
@ -564,7 +564,7 @@ void titlebar(const char *path)
|
||||||
void bottombars(const shortcut *s)
|
void bottombars(const shortcut *s)
|
||||||
{
|
{
|
||||||
int i, j, numcols;
|
int i, j, numcols;
|
||||||
char keystr[4];
|
char keystr[9];
|
||||||
int slen;
|
int slen;
|
||||||
|
|
||||||
if (ISSET(NO_HELP))
|
if (ISSET(NO_HELP))
|
||||||
|
@ -591,7 +591,7 @@ void bottombars(const shortcut *s)
|
||||||
strcpy(keystr, "^ ");
|
strcpy(keystr, "^ ");
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
else if (s->val == KEY_UP)
|
else if (s->val == KEY_UP)
|
||||||
strcpy(keystr, _("Up"));
|
strncpy(keystr, _("Up"), 8);
|
||||||
#endif /* NANO_SMALL */
|
#endif /* NANO_SMALL */
|
||||||
else if (s->val > 0) {
|
else if (s->val > 0) {
|
||||||
if (s->val < 64)
|
if (s->val < 64)
|
||||||
|
|
Loading…
Reference in New Issue