Skip to content

Commit ec4462f

Browse files
committed
fixed array overrun
1 parent ef9cb47 commit ec4462f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libcob/fileio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ struct dirent *listdir_filedata;
215215
#define READOPTSSIZE 4
216216
#define STARTCONDSIZE 2
217217
#define EXCPTCODESIZE 6
218+
#define FNSTATUSSIZE 3
218219

219220
cob_file *cob_error_file;
220221

@@ -4120,7 +4121,7 @@ cob_invoke_fun (int operate, char *f, cob_field *key, char *rec,
41204121
char oper[OPENMODESIZE];
41214122
char excpcode[EXCPTCODESIZE];
41224123
char *p_excpcode = excpcode;
4123-
char tmpfnstatus[2];
4124+
char tmpfnstatus[FNSTATUSSIZE];
41244125
char *p_tmpfnstatus = tmpfnstatus;
41254126
int status1 = 0;
41264127
int (*funcint)();

0 commit comments

Comments
 (0)