version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_hiscore_c = | | * static char *rcsid_hiscore_c = |
* "$Id: hiscore.c,v 1.4 2001/08/05 05:07:20 mwedel Exp $"; | | * "$Id: hiscore.c,v 1.5 2001/10/30 00:49:02 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
strncpy(buf,scorebuf,MAX_BUF); | | strncpy(buf,scorebuf,MAX_BUF); |
cp=buf; | | cp=buf; |
while (strlen(cp)> maxchar) { | | while (strlen(cp)> (size_t)maxchar) { |
bp = cp+maxchar-1; | | bp = cp+maxchar-1; |
while (*bp != ' ' && bp>cp) bp--; | | while (*bp != ' ' && bp>cp) bp--; |
*bp='\0'; | | *bp='\0'; |