--- JM101/ldecod/src/ldecod.c 2005-10-01 20:21:34.000000000 -0700 +++ src/ldecod.c 2005-12-02 01:26:54.000000000 -0800 @@ -508,11 +508,11 @@ decoder conf file we need to read the leakybucket params to get to those parameters */ #ifndef _LEAKYBUCKET_ - fscanf(fd,"%ld,",&temp); + fscanf(fd,"%d,",&temp); fscanf(fd, "%*[^\n]"); - fscanf(fd,"%ld,",&temp); + fscanf(fd,"%d,",&temp); fscanf(fd, "%*[^\n]"); - fscanf(fd,"%ld,",&temp); + fscanf(fd,"%d,",&temp); fscanf(fd, "%*[^\n]"); fscanf(fd,"%s",tempval); fscanf(fd,"%*[^\n]"); @@ -589,7 +589,11 @@ else { fclose(p_log); - p_log=fopen(string,"a"); // File exist,just open for appending + if ((p_log=fopen(string,"a"))==0) // File exist,just open for appending + { + snprintf(errortext, ET_SIZE, "Error open file %s for appending",string); + error(errortext, 500); + } } fprintf(p_log,"|%s/%-4s", VERSION, EXT_VERSION);