Fixed array bound length
This commit is contained in:
parent
847ae7c1c6
commit
8639394cb3
@ -466,10 +466,10 @@ int EditConnections(FILE *fil)
|
|||||||
|
|
||||||
if (System.aka.zone) {
|
if (System.aka.zone) {
|
||||||
set_color(CYAN,BLACK);
|
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 {
|
} else {
|
||||||
set_color(LIGHTBLUE, BLACK);
|
set_color(LIGHTBLUE, BLACK);
|
||||||
snprintf(temp, 81, "%3d.", o+i);
|
snprintf(temp, 41, "%3d.", o+i);
|
||||||
}
|
}
|
||||||
mbse_mvprintw(y, x, temp);
|
mbse_mvprintw(y, x, temp);
|
||||||
y++;
|
y++;
|
||||||
@ -642,7 +642,7 @@ void DeleteRules(char *filename)
|
|||||||
{
|
{
|
||||||
DIR *dp;
|
DIR *dp;
|
||||||
struct dirent *de;
|
struct dirent *de;
|
||||||
char temp[128];
|
char temp[PATH_MAX];
|
||||||
|
|
||||||
if (strlen(filename) == 0)
|
if (strlen(filename) == 0)
|
||||||
return;
|
return;
|
||||||
|
@ -337,7 +337,7 @@ int EditTicConnections(FILE *fil)
|
|||||||
char pick[12];
|
char pick[12];
|
||||||
sysconnect System;
|
sysconnect System;
|
||||||
char status[4];
|
char status[4];
|
||||||
char temp[41];
|
char temp[81];
|
||||||
|
|
||||||
systems = tichdr.syssize / sizeof(sysconnect);
|
systems = tichdr.syssize / sizeof(sysconnect);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Reference in New Issue
Block a user