version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_hiscore_c = | | * static char *rcsid_hiscore_c = |
* "$Id: hiscore.c,v 1.10 2004/03/26 21:59:28 ryo_saeba Exp $"; | | * "$Id: hiscore.c,v 1.11 2005/07/10 13:54:06 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return; | | return; |
} | | } |
strncpy(new_score.name,op->name,BIG_NAME); | | strncpy(new_score.name,op->name,BIG_NAME); |
| | new_score.name[BIG_NAME-1] = '\0'; |
strncpy(new_score.title,op->contr->own_title,BIG_NAME); | | strncpy(new_score.title,op->contr->own_title,BIG_NAME); |
if(new_score.title[0]=='\0') | | if(new_score.title[0]=='\0') |
strncpy(new_score.title,op->contr->title,BIG_NAME); | | strncpy(new_score.title,op->contr->title,BIG_NAME); |
| | new_score.title[BIG_NAME-1] = '\0'; |
strncpy(new_score.killer,op->contr->killer,BIG_NAME); | | strncpy(new_score.killer,op->contr->killer,BIG_NAME); |
if(new_score.killer[0]=='\0') | | if(new_score.killer[0]=='\0') |
strcpy(new_score.killer,"a dungeon collapse"); | | strcpy(new_score.killer,"a dungeon collapse"); |
| | new_score.killer[BIG_NAME-1] = '\0'; |
new_score.exp=op->stats.exp; | | new_score.exp=op->stats.exp; |
if(op->map == NULL) | | if(op->map == NULL) |
*new_score.maplevel = '\0'; | | *new_score.maplevel = '\0'; |
| | |
* mw - 2-12-97 | | * mw - 2-12-97 |
*/ | | */ |
strncpy(buf,scorebuf,MAX_BUF); | | strncpy(buf,scorebuf,MAX_BUF); |
| | buf[MAX_BUF-1] = '\0'; |
cp=buf; | | cp=buf; |
while (strlen(cp)> maxchar) { | | while (strlen(cp)> maxchar) { |
bp = cp+maxchar-1; | | bp = cp+maxchar-1; |