summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9ae3b6f)
causing segfaults on strange architectures.
git-svn-id: svn://svn.tartarus.org/sgt/halibut@4398
cda61777-01e9-0310-a592-
d414129be87e
static void donumber(word ***wret, int num) {
wchar_t text[20];
static void donumber(word ***wret, int num) {
wchar_t text[20];
- wchar_t *p = text + sizeof(text);
+ wchar_t *p = text + lenof(text);
*--p = L'\0';
while (num != 0) {
assert(p > text);
*--p = L'\0';
while (num != 0) {
assert(p > text);
- p = text + sizeof(text);
+ p = text + lenof(text);
*--p = L'\0';
while (nletters--) {
assert(p > text);
*--p = L'\0';
while (nletters--) {
assert(p > text);