version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* 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 |
| | |
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> |
| | |
*/ | | */ |
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)"; |
| | |
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 |