Skip to content

Commit

Permalink
"Prevent sscanf call from wrong memory reads" patch from rodolforg
Browse files Browse the repository at this point in the history
  • Loading branch information
nevat committed Aug 23, 2013
1 parent e04c9d0 commit ea0ead9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,9 @@ void cargardatos (int fase[][22][32], int datosenem[][7][15]) {
int i = 0;
int j = 0;
int k = 0;
char linea[129], temp[3];
char linea[129], temp[4];
char linea2[61];
temp[3] = 0;

/* Cargar el fichero */
fichero = fopen(RUTA_DAT_MAPA, "r");
Expand Down

0 comments on commit ea0ead9

Please sign in to comment.