projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56631a1
)
Crash in attribute tree code fixed when updating last modified
author
Rick L Bird
<nveid@yahoo.com>
Fri, 6 May 2011 05:51:32 +0000
(
01:51
-0400)
committer
Rick L Bird
<nveid@yahoo.com>
Fri, 6 May 2011 05:51:32 +0000
(
01:51
-0400)
information.
src/attrib.c
patch
|
blob
|
history
diff --git
a/src/attrib.c
b/src/attrib.c
index 9123efee67737ed75063029b03f7e01c7bf0dcb4..9e01200093abcd6bcb8cb405f5711d3572651969 100644
(file)
--- a/
src/attrib.c
+++ b/
src/attrib.c
@@
-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);
}