[prev in list] [next in list] [prev in thread] [next in thread]
List: pidgin-commits
Subject: /pidgin/main: 448dd56e312d: Fix purple_utf8_salvage() to correct...
From: Daniel Atallah <datallah () pidgin ! im>
Date: 2013-02-27 3:59:48
Message-ID: hg.448dd56e312d.1361937588.-874508059 () rock ! pidgin ! im
[Download RAW message or body]
Changeset: 448dd56e312d487e54493fac81eb4e47daa98c57
Author: Daniel Atallah <datallah@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)
{
_______________________________________________
Commits mailing list
Commits@pidgin.im
http://pidgin.im/cgi-bin/mailman/listinfo/commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic