Crash in attribute tree code fixed when updating last modified
authorRick L Bird <nveid@yahoo.com>
Fri, 6 May 2011 05:51:32 +0000 (01:51 -0400)
committerRick L Bird <nveid@yahoo.com>
Fri, 6 May 2011 05:51:32 +0000 (01:51 -0400)
information.

src/attrib.c

index 9123efee67737ed75063029b03f7e01c7bf0dcb4..9e01200093abcd6bcb8cb405f5711d3572651969 100644 (file)
@@ -729,10 +729,10 @@ atr_add(dbref thing, const char *restrict atr, const char *restrict s,
 
         /* update modification time here, because from now on,
          * we modify even if we fail */
-        if (!IsPlayer(thing) && !AF_Nodump(ptr)) {
+        if (!IsPlayer(thing) && !AF_Nodump(root)) {
           char lmbuf[1024];
           ModTime(thing) = mudtime;
-          snprintf(lmbuf, 1023, "%s[#%d]", ptr->name, player);
+          snprintf(lmbuf, 1023, "%s[#%d]", root->name, player);
           lmbuf[strlen(lmbuf) + 1] = '\0';
           set_lmod(thing, lmbuf);
         }