summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garrett <jeff@jgarrett.org>2007-09-08 04:00:49 +0000
committerJeff Garrett <jeff@jgarrett.org>2007-09-08 04:00:49 +0000
commit0c01994ad661d473edcf5ea5c40de373bd906861 (patch)
treeea58c858bfaf1e0e598276a65448062d81d9d7ff
parent09e830813e6ca5268f45a2299a09c76b61aff7a1 (diff)
Check TIGER filenames have the correct case
-rw-r--r--ChangeLog4
-rw-r--r--src/import.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 688cd19..464ffb4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-09-08 Jeff Garrett <jeff@jgarrett.org>
+ * src/import.c: Check TIGER filenames have the correct case
+
+2007-09-08 Jeff Garrett <jeff@jgarrett.org>
+
* src/import_tiger.c: Use places instead of primary county subdivisions
2007-09-08 Jeff Garrett <jeff@jgarrett.org>
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);