Difference for server/hiscore.c from version 1.10 to 1.11


version 1.10 version 1.11
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 271
 
Line 271
  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';
Line 358
 
Line 361
  * 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;


Legend:
line(s) removed in v.1.10 
line(s) changed
 line(s) added in v.1.11

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