From 8639394cb3eebc1e6af7c139ec5648a3aadac681 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 30 Aug 2005 19:49:57 +0000 Subject: [PATCH] Fixed array bound length --- mbsetup/m_marea.c | 6 +++--- mbsetup/m_ticarea.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mbsetup/m_marea.c b/mbsetup/m_marea.c index a4147f4a..3ca70dba 100644 --- a/mbsetup/m_marea.c +++ b/mbsetup/m_marea.c @@ -466,10 +466,10 @@ int EditConnections(FILE *fil) if (System.aka.zone) { set_color(CYAN,BLACK); - snprintf(temp, 81, "%3d. %s %s", o+i, status, aka2str(System.aka)); + snprintf(temp, 41, "%3d. %s %s", o+i, status, aka2str(System.aka)); } else { set_color(LIGHTBLUE, BLACK); - snprintf(temp, 81, "%3d.", o+i); + snprintf(temp, 41, "%3d.", o+i); } mbse_mvprintw(y, x, temp); y++; @@ -642,7 +642,7 @@ void DeleteRules(char *filename) { DIR *dp; struct dirent *de; - char temp[128]; + char temp[PATH_MAX]; if (strlen(filename) == 0) return; diff --git a/mbsetup/m_ticarea.c b/mbsetup/m_ticarea.c index cff71f38..5d97dac2 100644 --- a/mbsetup/m_ticarea.c +++ b/mbsetup/m_ticarea.c @@ -337,7 +337,7 @@ int EditTicConnections(FILE *fil) char pick[12]; sysconnect System; char status[4]; - char temp[41]; + char temp[81]; systems = tichdr.syssize / sizeof(sysconnect); for (;;) {