Difference for common/treasure.c from version 1.45 to 1.46


version 1.45 version 1.46
Line 1
 
Line 1
   
 /*  /*
  * static char *rcs_treasure_c =   * static char *rcs_treasure_c =
  *   "$Id: treasure.c,v 1.45 2004/02/09 08:04:24 mwedel Exp $";   *   "$Id: treasure.c,v 1.46 2004/03/03 01:17:09 temitchell Exp $";
  */   */
   
 /*  /*
Line 1159
 
Line 1159
 void init_artifacts() {  void init_artifacts() {
     static int has_been_inited=0;      static int has_been_inited=0;
     FILE *fp;      FILE *fp;
     char filename[MAX_BUF], buf[MAX_BUF], *cp, *next;      char filename[MAX_BUF], buf[HUGE_BUF], *cp, *next;
     artifact *art=NULL;      artifact *art=NULL;
     linked_char *tmp;      linked_char *tmp;
     int value, comp;      int value, comp;
Line 1175
 
Line 1175
  return;   return;
     }      }
   
     while (fgets(buf, MAX_BUF, fp)!=NULL) {      while (fgets(buf, HUGE_BUF, fp)!=NULL) {
  if (*buf=='#') continue;   if (*buf=='#') continue;
  if((cp=strchr(buf,'\n'))!=NULL)   if((cp=strchr(buf,'\n'))!=NULL)
      *cp='\0';       *cp='\0';
Line 1694
 
Line 1694
     }      }
     free_artifactlist(first_artifactlist);      free_artifactlist(first_artifactlist);
 }  }
   


Legend:
line(s) removed in v.1.45 
line(s) changed
 line(s) added in v.1.46

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:18