Difference for server/player.c from version 1.167 to 1.168


version 1.167 version 1.168
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.167 2005/07/16 21:10:39 akirschbaum Exp $";   *   "$Id: player.c,v 1.168 2005/07/30 15:03:00 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 114
 
Line 114
     while (fgets(buf, MAX_BUF, fp) != NULL) {      while (fgets(buf, MAX_BUF, fp) != NULL) {
       if( *buf == '#')        if( *buf == '#')
         continue;             continue;   
         if (size + strlen(buf)>=HUGE_BUF)
             {
             LOG(llevDebug, "Warning, rules size is > %d bytes.\n", HUGE_BUF);
             break;
             }
       strncat(rules+size,buf,HUGE_BUF-size);        strncat(rules+size,buf,HUGE_BUF-size);
       size+=strlen(buf);        size+=strlen(buf);
     }      }
Line 151
 
Line 156
           news[0]='\0';            news[0]='\0';
       }        }
       else{        else{
             if (size + strlen(buf)>=HUGE_BUF)
                 {
                 LOG(llevDebug, "Warning, one news item has size > %d bytes.\n", HUGE_BUF);
                 break;
                 }
           strncat(news+size,buf,HUGE_BUF-size);            strncat(news+size,buf,HUGE_BUF-size);
           size+=strlen(buf);            size+=strlen(buf);
       }        }


Legend:
line(s) removed in v.1.167 
line(s) changed
 line(s) added in v.1.168

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