diff options
author | 2018-07-23 20:27:56 -0400 | |
---|---|---|
committer | 2018-07-23 20:31:11 -0400 | |
commit | f4b882475eee7a81c206c7825616cc4656b2f60b (patch) | |
tree | 38e6ebf81b235424f105dcbcbb194e5e9eac70c0 /common/unicode.c | |
parent | Implement pid->workspace tracking (diff) | |
parent | Merge pull request #2342 from RyanDwyer/update-cursor (diff) | |
download | sway-f4b882475eee7a81c206c7825616cc4656b2f60b.tar.gz sway-f4b882475eee7a81c206c7825616cc4656b2f60b.tar.zst sway-f4b882475eee7a81c206c7825616cc4656b2f60b.zip |
Merge branch 'master' into pid-workspaces
Diffstat (limited to 'common/unicode.c')
-rw-r--r-- | common/unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/unicode.c b/common/unicode.c index 38a9b48e..5070e083 100644 --- a/common/unicode.c +++ b/common/unicode.c | |||
@@ -92,7 +92,7 @@ static const struct { | |||
92 | 92 | ||
93 | int utf8_size(const char *s) { | 93 | int utf8_size(const char *s) { |
94 | uint8_t c = (uint8_t)*s; | 94 | uint8_t c = (uint8_t)*s; |
95 | for (size_t i = 0; i < sizeof(sizes) / 2; ++i) { | 95 | for (size_t i = 0; i < sizeof(sizes) / sizeof(*sizes); ++i) { |
96 | if ((c & sizes[i].mask) == sizes[i].result) { | 96 | if ((c & sizes[i].mask) == sizes[i].result) { |
97 | return sizes[i].octets; | 97 | return sizes[i].octets; |
98 | } | 98 | } |