g regler le pb

master
parent cb9e502dbe
commit 647957b2ea

BIN
SAE2

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -44,7 +44,7 @@ char *readFromFile(FILE *file)
if (str == NULL)
exit(1);
while (str[len] != '\n')
while (str[len] != '\n' && !feof(file))
{
len = strlen(str);
if (len >= size - 1)
@ -121,7 +121,7 @@ Precedence *loadPrec(int *tmax, int *tlog)
char *precSuccStr;
int index;
prec=fopen("files/precedences.txt", "r");
(*tmax)=0;
(*tmax)=5;
(*tlog)=0;
if (prec == NULL)
{

Loading…
Cancel
Save