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

Comparing deliantra/server/common/recipe.C (file contents):
Revision 1.41 by root, Wed Apr 28 19:51:53 2010 UTC vs.
Revision 1.42 by root, Thu Apr 29 15:59:09 2010 UTC

455 char *p; 455 char *p;
456 size_t size; 456 size_t size;
457 size_t i; 457 size_t i;
458 458
459 dup = strdup (str); 459 dup = strdup (str);
460 if (dup == NULL)
461 fatal ("out of memory");
462 460
463 size = 0; 461 size = 0;
464 for (p = strtok (dup, ","); p != NULL; p = strtok (NULL, ",")) 462 for (p = strtok (dup, ","); p != NULL; p = strtok (NULL, ","))
465 size++; 463 size++;
466 464

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines