mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
Upper half of byte is >> 4, not >> 8. Found by Kjartan Maraas via sparse
2008-10-10 Alexander Larsson <alexl@redhat.com> * gfileattribute.c (escape_byte_string): Upper half of byte is >> 4, not >> 8. Found by Kjartan Maraas via sparse svn path=/trunk/; revision=7590
This commit is contained in:
parent
a8c88cae76
commit
84eabd3d59
@ -1,3 +1,9 @@
|
||||
2008-10-10 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gfileattribute.c (escape_byte_string):
|
||||
Upper half of byte is >> 4, not >> 8.
|
||||
Found by Kjartan Maraas via sparse
|
||||
|
||||
2008-10-10 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 555711 – Wrong fallback order of mimetype icons
|
||||
|
@ -384,7 +384,7 @@ escape_byte_string (const char *str)
|
||||
{
|
||||
*p++ = '\\';
|
||||
*p++ = 'x';
|
||||
*p++ = hex_digits[(c >> 8) & 0xf];
|
||||
*p++ = hex_digits[(c >> 4) & 0xf];
|
||||
*p++ = hex_digits[c & 0xf];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user