[CF-Devel] CVS update: client
Crossfire CVS devel
mwedel at scruznet.com
Mon Aug 28 03:02:41 CDT 2000
Date: Monday August 28, 2000 @ 1:02
Author: cvs
Update of /home/cvs/CVS/client
In directory boltzmann.eecs.berkeley.edu:/tmp/cvs-serv4469
Modified Files:
item.c
Log Message:
Fixed a client crashing bug.
<= used on an array: indexes start from 0! sizeof counts from 1.
PeterM
****************************************
Index: client/item.c
diff -u client/item.c:1.3 client/item.c:1.4
--- client/item.c:1.3 Sun Aug 6 22:27:22 2000
+++ client/item.c Mon Aug 28 01:02:41 2000
@@ -379,7 +379,7 @@
if (op->locked)
strcat (op->flags, " *");
if (op->apply_type) {
- if (op->apply_type <= sizeof (apply_string) / sizeof(apply_string[0]))
+ if (op->apply_type < sizeof (apply_string) / sizeof(apply_string[0]))
strcat (op->flags, apply_string[op->apply_type]);
else
strcat (op->flags, " (undefined)");
More information about the crossfire
mailing list