From 0c01994ad661d473edcf5ea5c40de373bd906861 Mon Sep 17 00:00:00 2001 From: Jeff Garrett Date: Sat, 8 Sep 2007 04:00:49 +0000 Subject: Check TIGER filenames have the correct case --- ChangeLog | 4 ++++ src/import.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 688cd19..464ffb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-09-08 Jeff Garrett + + * src/import.c: Check TIGER filenames have the correct case + 2007-09-08 Jeff Garrett * src/import_tiger.c: Use places instead of primary county subdivisions diff --git a/src/import.c b/src/import.c index dcfe742..cd1f2b3 100644 --- a/src/import.c +++ b/src/import.c @@ -60,7 +60,7 @@ gboolean import_from_uri(const gchar* pszURI) 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); -- cgit v1.2.3