You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnome-vfs2/gnome-vfs-2.12.1.1-mimecach...

23 lines
960 B

--- gnome-vfs-2.12.1.1/libgnomevfs/xdgmimecache.c.mimecache 2005-04-17 06:37:34.000000000 -0400
+++ gnome-vfs-2.12.1.1/libgnomevfs/xdgmimecache.c 2005-10-19 08:19:13.000000000 -0400
@@ -175,8 +175,8 @@
{
for (j = 0; j < data_length; j++)
{
- if ((cache->buffer[data_offset + j] & cache->buffer[mask_offset + j]) !=
- ((((unsigned char *) data)[j + i]) & cache->buffer[mask_offset + j]))
+ if ((((unsigned char *)cache->buffer)[data_offset + j] & ((unsigned char *)cache->buffer)[mask_offset + j]) !=
+ ((((unsigned char *) data)[j + i]) & ((unsigned char *)cache->buffer)[mask_offset + j]))
{
valid_matchlet = FALSE;
break;
@@ -187,7 +187,7 @@
{
for (j = 0; j < data_length; j++)
{
- if (cache->buffer[data_offset + j] != ((unsigned char *) data)[j + i])
+ if (((unsigned char *)cache->buffer)[data_offset + j] != ((unsigned char *) data)[j + i])
{
valid_matchlet = FALSE;
break;