Difference for common/item.c from version 1.4 to 1.5


version 1.4 version 1.5
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_item_c =   * static char *rcsid_item_c =
  *   "$Id: item.c,v 1.4 1999/09/17 23:36:56 damn Exp $";   *   "$Id: item.c,v 1.5 2000/05/23 03:52:21 cvs Exp $";
  */   */
   
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
   
       Copyright (C) 2000 Mark Wedel
     Copyright (C) 1992 Frank Tore Johansen      Copyright (C) 1992 Frank Tore Johansen
   
     This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
Line 22
 
Line 23
     along with this program; if not, write to the Free Software      along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   
     The author can be reached via e-mail to frankj@ifi.uio.no.      The author can be reached via e-mail to mwedel@scruz.net
 */  */
   
 #include <global.h>  #include <global.h>
Line 185
 
Line 186
  */   */
 char *query_short_name(object *op)   char *query_short_name(object *op)
 {  {
     static char buf[MAX_BUF];      static char buf[HUGE_BUF];
     char buf2[MAX_BUF];      char buf2[HUGE_BUF];
   
     if(op->name == NULL)      if(op->name == NULL)
  return "(null)";   return "(null)";
Line 264
 
Line 265
      char *s = ring_desc(op);       char *s = ring_desc(op);
      if (s[0]) {       if (s[0]) {
  strcat (buf, " ");   strcat (buf, " ");
  strcat (buf, s);   strncat (buf, s, HUGE_BUF-strlen(buf)-1);
    buf[HUGE_BUF-1]=0;
      }       }
  }   }
 #endif  #endif


Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5

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