/pidgin/main: 448dd56e312d: Fix purple_utf8_salvage() to correct...
Daniel Atallah
datallah at pidgin.im
Tue Feb 26 22:59:48 EST 2013
Changeset: 448dd56e312d487e54493fac81eb4e47daa98c57
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2013-02-26 22:59 -0500
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/448dd56e312d
Description:
Fix purple_utf8_salvage() to correctly identify the 4-byte start byte
* It's pretty unlikely that this ever prevented real data from being salvaged
diffstat:
libpurple/util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/libpurple/util.c b/libpurple/util.c
--- a/libpurple/util.c
+++ b/libpurple/util.c
@@ -4525,7 +4525,7 @@ purple_utf8_try_convert(const char *str)
}
#define utf8_first(x) ((x & 0x80) == 0 || (x & 0xe0) == 0xc0 \
- || (x & 0xf0) == 0xe0 || (x & 0xf8) == 0xf)
+ || (x & 0xf0) == 0xe0 || (x & 0xf8) == 0xf0)
gchar *
purple_utf8_salvage(const char *str)
{
More information about the Commits
mailing list