git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@619
a5681a0c-68f1-0310-ab6d-
d61299d08faa
MYFREAD(rrd->stat_head, stat_head_t, 1)
/* lets see if the first read worked */
MYFREAD(rrd->stat_head, stat_head_t, 1)
/* lets see if the first read worked */
- if (ferror( *in_file )){
+ if (ferror( *in_file ) || feof(*in_file)) {
rrd_set_error("reading the cookie off %s faild",file_name);
fclose(*in_file);
return(-1);
rrd_set_error("reading the cookie off %s faild",file_name);
fclose(*in_file);
return(-1);