From 20545a2c6e511610a7352d1c8e1cd661062e0ef1 Mon Sep 17 00:00:00 2001 From: Davy Kager Date: Thu, 7 Jan 2016 18:48:41 +0100 Subject: [PATCH] Fixup; fix another warning. --- liblouis/compileTranslationTable.c | 3 ++- liblouis/findTable.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/liblouis/compileTranslationTable.c b/liblouis/compileTranslationTable.c index 06c4d5f66f..2ad2590cf0 100644 --- a/liblouis/compileTranslationTable.c +++ b/liblouis/compileTranslationTable.c @@ -5434,8 +5434,9 @@ resolveSubtable (const char *table, const char *base, const char *searchPath) // if (base) { - int k = (int)strlen (tableFile); + int k; strcpy (tableFile, base); + k = (int)strlen (tableFile); while (k >= 0 && tableFile[k] != DIR_SEP) k--; tableFile[++k] = '\0'; strcat (tableFile, table); diff --git a/liblouis/findTable.c b/liblouis/findTable.c index d16243b501..2a53937c09 100644 --- a/liblouis/findTable.c +++ b/liblouis/findTable.c @@ -618,7 +618,7 @@ lou_findTable(const char * query) logMessage(LOG_WARN, "Tables have not been indexed yet. Indexing LOUIS_TABLEPATH."); searchPath = getTablePath(); tables = listFiles(searchPath); - tablesArray = list_toArray(tables, NULL); + tablesArray = (const char **)list_toArray(tables, NULL); lou_indexTables(tablesArray); free(searchPath); list_free(tables);