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