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:
Alexander Larsson 2008-10-10 11:35:39 +00:00 committed by Alexander Larsson
parent a8c88cae76
commit 84eabd3d59
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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];
}
}