Skip to content

Commit ea0ead9

Browse files
committed
"Prevent sscanf call from wrong memory reads" patch from rodolforg
1 parent e04c9d0 commit ea0ead9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,9 @@ void cargardatos (int fase[][22][32], int datosenem[][7][15]) {
527527
int i = 0;
528528
int j = 0;
529529
int k = 0;
530-
char linea[129], temp[3];
530+
char linea[129], temp[4];
531531
char linea2[61];
532+
temp[3] = 0;
532533

533534
/* Cargar el fichero */
534535
fichero = fopen(RUTA_DAT_MAPA, "r");

0 commit comments

Comments
 (0)