ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/arch.C
(Generate patch)

Comparing deliantra/server/common/arch.C (file contents):
Revision 1.39 by root, Fri Feb 2 22:07:51 2007 UTC vs.
Revision 1.40 by root, Fri Feb 2 22:08:23 2007 UTC

179item_matched_string (object *pl, object *op, const char *name) 179item_matched_string (object *pl, object *op, const char *name)
180{ 180{
181 char *cp, local_name[MAX_BUF]; 181 char *cp, local_name[MAX_BUF];
182 int count, retval = 0; 182 int count, retval = 0;
183 183
184 strcpy (local_name, name); /* strtok is destructive to name */ 184 assign (local_name, name); /* strtok is destructive to name */
185 185
186 for (cp = strtok (local_name, ","); cp; cp = strtok (NULL, ",")) 186 for (cp = strtok (local_name, ","); cp; cp = strtok (NULL, ","))
187 { 187 {
188 while (cp[0] == ' ') 188 while (cp[0] == ' ')
189 ++cp; /* get rid of spaces */ 189 ++cp; /* get rid of spaces */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines