summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fbe8cf2)
`anonfrag' should be a char[] rather than a char *, or else lenof()
will give the wrong answer.
git-svn-id: svn://svn.tartarus.org/sgt/halibut@5477
cda61777-01e9-0310-a592-
d414129be87e
/* If there's nothing left, make something valid up */
if (!*text) {
/* If there's nothing left, make something valid up */
if (!*text) {
- static const char *const anonfrag = "anon";
+ static const char anonfrag[] = "anon";
text = sresize(text, lenof(anonfrag), char);
strcpy(text, anonfrag);
}
text = sresize(text, lenof(anonfrag), char);
strcpy(text, anonfrag);
}