diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-11-23 03:46:43 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-11-23 03:46:43 -0200 |
commit | d34645f8f1b958454f182fcc061a05fefe48f4df (patch) | |
tree | c2e19bf9788090af9f4d92619f1827ff203f60fd /RichString.c | |
parent | f02d8f43869be3fc2c14b817af50c2d14da75c98 (diff) |
Array entries have been oddly flipped here for years.
Diffstat (limited to 'RichString.c')
-rw-r--r-- | RichString.c | 3 |
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] : '?') } }; } } |