summaryrefslogtreecommitdiffstats
path: root/RichString.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-11-23 03:46:43 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-11-23 03:46:43 -0200
commitd34645f8f1b958454f182fcc061a05fefe48f4df (patch)
treec2e19bf9788090af9f4d92619f1827ff203f60fd /RichString.c
parentf02d8f43869be3fc2c14b817af50c2d14da75c98 (diff)
Array entries have been oddly flipped here for years.
Diffstat (limited to 'RichString.c')
-rw-r--r--RichString.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/RichString.c b/RichString.c
index 8a06baae..c9c02dec 100644
--- a/RichString.c
+++ b/RichString.c
@@ -100,8 +100,7 @@ static inline void RichString_writeFrom(RichString* this, int attrs, const char*
int newLen = from + len;
RichString_setLen(this, newLen);
for (int i = from, j = 0; i < newLen; i++, j++) {
- CharType* c = &(this->chptr[i]);
- *c = (CharType) { .attr = attrs, .chars = { (iswprint(data[j]) ? data[j] : '?') } };
+ this->chptr[i] = (CharType) { .attr = attrs & 0xffffff, .chars = { (iswprint(data[j]) ? data[j] : '?') } };
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy