summaryrefslogtreecommitdiff
path: root/src/import.c
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 /src/import.c
parent09e830813e6ca5268f45a2299a09c76b61aff7a1 (diff)
Check TIGER filenames have the correct case
Diffstat (limited to 'src/import.c')
-rw-r--r--src/import.c2
1 files changed, 1 insertions, 1 deletions
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);