glib r7590 - trunk/gio



Author: alexl
Date: Fri Oct 10 11:35:39 2008
New Revision: 7590
URL: http://svn.gnome.org/viewvc/glib?rev=7590&view=rev

Log:
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



Modified:
   trunk/gio/ChangeLog
   trunk/gio/gfileattribute.c

Modified: trunk/gio/gfileattribute.c
==============================================================================
--- trunk/gio/gfileattribute.c	(original)
+++ trunk/gio/gfileattribute.c	Fri Oct 10 11:35:39 2008
@@ -384,7 +384,7 @@
 	    {
 	      *p++ = '\\';
 	      *p++ = 'x';
-	      *p++ = hex_digits[(c >> 8) & 0xf];
+	      *p++ = hex_digits[(c >> 4) & 0xf];
 	      *p++ = hex_digits[c & 0xf];
 	    }
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]