SDLvncviewer: adhere to C89

pull/3/head
Christian Beier 6 years ago
parent a2b5284e07
commit b0957702a8
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -181,7 +181,8 @@ static rfbKeySym utf8char2rfbKeySym(const char chr[4]) {
int bytes = strlen(chr);
int shift = utf8Mapping[0].bits_stored * (bytes - 1);
rfbKeySym codep = (*chr++ & utf8Mapping[bytes].mask) << shift;
for(int i = 1; i < bytes; ++i, ++chr) {
int i;
for(i = 1; i < bytes; ++i, ++chr) {
shift -= utf8Mapping[0].bits_stored;
codep |= ((char)*chr & utf8Mapping[0].mask) << shift;
}

Loading…
Cancel
Save