projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8671af4
)
s/strndup/savepvn/
Yuval Kogman [Sun, 19 Apr 2009 18:55:57 +0000 (20:55 +0200)]
cmop/mop_attr.c
patch
|
blob
|
blame
|
history
diff --git
a/cmop/mop_attr.c
b/cmop/mop_attr.c
index
3de5173
..
f0afe2a
100644
(file)
--- a/
cmop/mop_attr.c
+++ b/
cmop/mop_attr.c
@@
-180,7
+180,7
@@
initialize_default_builder (mop_attr_t *attr, SV *perl_attr)
SPAGAIN;
builder = SvPV (POPs, len);
- attr->default_value.method = strndup (builder, len);
+ attr->default_value.method = savepvn (builder, len);
ATTRFLAGS (attr) |= (mop_attr_default_builder << ATTR_DEFAULT_SHIFT);
PUTBACK;