[Debootloaders-devel] r64 - in trunk/rsrce: . debian

Aurélien GÉRÔME ag-guest at costa.debian.org
Tue Jul 11 01:18:52 UTC 2006


Author: ag-guest
Date: 2006-07-11 01:18:52 +0000 (Tue, 11 Jul 2006)
New Revision: 64

Modified:
   trunk/rsrce/debian/changelog
   trunk/rsrce/translate.c
Log:
Add patch from Piotras to fix exporting of binary resources.


Modified: trunk/rsrce/debian/changelog
===================================================================
--- trunk/rsrce/debian/changelog	2006-07-11 01:10:20 UTC (rev 63)
+++ trunk/rsrce/debian/changelog	2006-07-11 01:18:52 UTC (rev 64)
@@ -1,3 +1,9 @@
+rsrce (0.1-3) unstable; urgency=low
+
+  * Fix exporting of binary resources, courtesy of Piotras.
+
+ -- Aurélien GÉRÔME <ag at roxor.cx>  Tue, 11 Jul 2006 03:13:35 +0200
+
 rsrce (0.1-2) unstable; urgency=low
 
   * Added man page provided by Jeremie Koenig.

Modified: trunk/rsrce/translate.c
===================================================================
--- trunk/rsrce/translate.c	2006-07-11 01:10:20 UTC (rev 63)
+++ trunk/rsrce/translate.c	2006-07-11 01:18:52 UTC (rev 64)
@@ -164,7 +164,7 @@
 	{"STR#", "txt", tr_strhash_export,	tr_strhash_import	},
 	{"CMDL", "txt", tr_cmdl_export,		tr_cmdl_import		},
 	{"",     "bin", tr_raw_export,		tr_raw_import		},
-	{"", NULL, NULL, NULL}
+	{"",     NULL,  NULL,			NULL			}
 };
 
 struct translator *tr_lookup(struct resource *r, const char *ext)
@@ -173,8 +173,9 @@
 	int i;
 
 	res_gettype(r, type);
-	for(i=0 ; tr_table[i].export ; i++)
-		if(!((type[0] && memcmp(tr_table[i].type, type, sizeof(type)))
+	for(i=0 ; tr_table[i].ext ; i++)
+		if(!((tr_table[i].type[0]
+		      && memcmp(tr_table[i].type, type, sizeof(type)))
 		     || (ext && strcmp(tr_table[i].ext, ext))))
 			return tr_table + i;
 	return NULL;





More information about the Debootloaders-devel mailing list