--- intel2gas-1.3.3/loaddata.cc 2000-06-20 21:57:28.000000000 +0200 +++ intel2gas-1.3.3-r1/loaddata.cc 2005-09-29 13:29:05.000000000 +0200 @@ -13,6 +13,7 @@ #include #include +#include #ifdef USE_GLOB #include // Find files #else @@ -155,7 +156,10 @@ // where filename is listname.nn.list { FILE *f; - f = fopen(filename,"r"); + if((f = fopen(filename,"r")) == NULL) { + perror("fopen"); + exit(errno); + } current_line = 0; list_t *l = newList(); @@ -213,7 +217,10 @@ // where filename is syntaxname.syntax { FILE *f; - f = fopen(filename,"r"); + if((f = fopen(filename,"r")) == NULL) { + perror("fopen"); + exit(errno); + } current_line = 0; char name[STR_LEN+1];