fixed wrong patch with the return value of fgets into convert.c file
This commit is contained in:
parent
0e8995aa7e
commit
4f329cbb45
3
CHANGES
3
CHANGES
|
@ -5,6 +5,9 @@ What's New for OpenJPEG
|
||||||
! : changed
|
! : changed
|
||||||
+ : added
|
+ : added
|
||||||
|
|
||||||
|
August 11, 2011
|
||||||
|
! [mickael] fixed wrong patch with the return value of fgets into convert.c file
|
||||||
|
|
||||||
August 10, 2011
|
August 10, 2011
|
||||||
! [mickael] removed unused parameters warnings with the solution proposed by myself and Bob Friesenhahn.
|
! [mickael] removed unused parameters warnings with the solution proposed by myself and Bob Friesenhahn.
|
||||||
! [mickael] add copyright header into new test functions.
|
! [mickael] add copyright header into new test functions.
|
||||||
|
|
|
@ -1408,11 +1408,9 @@ static void read_pnm_header(FILE *reader, struct pnm_header *ph)
|
||||||
char idf[256], type[256];
|
char idf[256], type[256];
|
||||||
char line[256];
|
char line[256];
|
||||||
|
|
||||||
char* return_value_fgets = fgets(line, 250, reader);
|
if (fgets(line, 250, reader) == NULL)
|
||||||
if (!strcmp(return_value_fgets,line))
|
|
||||||
{
|
{
|
||||||
fprintf(stderr,"\nWARNING: fgets return a value different that the first argument");
|
fprintf(stderr,"\nWARNING: fgets return a NULL value");
|
||||||
free(return_value_fgets);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue