[cairo-commit] roadster/src import.c,1.9,1.10

Jeff Garrett commit at pdx.freedesktop.org
Sat Sep 8 02:00:51 PDT 2007


Committed by: jgarrett

Update of /cvs/cairo/roadster/src
In directory kemper:/tmp/cvs-serv14212/src

Modified Files:
	import.c 
Log Message:
	* src/import.c: Check TIGER filenames have the correct case


Index: import.c
===================================================================
RCS file: /cvs/cairo/roadster/src/import.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- import.c	28 Mar 2005 18:49:50 -0000	1.9
+++ import.c	8 Sep 2007 09:00:49 -0000	1.10
@@ -60,7 +60,7 @@
 
 	g_return_val_if_fail(pszFileBaseName != NULL, FALSE);
 	// does it look like a tgr file name (tgr00000.zip) ?
-	if(strlen(pszFileBaseName) == 12 && g_str_has_prefix(pszFileBaseName, "tgr") && g_str_has_suffix(pszFileBaseName, ".zip")) {
+	if(strlen(pszFileBaseName) == 12 && g_str_has_prefix(pszFileBaseName, "TGR") && g_str_has_suffix(pszFileBaseName, ".ZIP")) {
 		importwindow_log_append("Importing TIGER file %s", info.name);	// NOTE: no "\n" so we can add ...
 		gchar buf[6];
 		memcpy(buf, &pszFileBaseName[3], 5);



More information about the cairo-commit mailing list