version 1.167 | | version 1.168 |
---|
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
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); |
} | | } |
| | |
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); |
} | | } |