[CODE] minor bug in Crash_listrent

From: Andrey Fidrya (andrey@alex-ua.com)
Date: 05/29/99


Buffer being overwritten in objsave.c -> Crash_listrent:

===
- int offset = 0;
+ int offset;
[...]
  default:
    strcat(buf, "Undef\r\n");
    break;
  }
+offset = strlen(buf); /* Zmey: don't overwrite the buffer! */
  while (!feof(fl)) {
    fread(&object, sizeof(struct obj_file_elem), 1, fl);
===

Zmey // 3MoonsWorld (rmud.net.ru:4000)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST