From 281029f150fd6d55752446311d649cf65dfa24e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <pali.rohar@gmail.com> Date: Mon, 2 Jan 2012 11:37:51 +0100 Subject: [PATCH] Fixed maemo-extract header --- gameheaders/stratagus-maemo-extract.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gameheaders/stratagus-maemo-extract.h b/gameheaders/stratagus-maemo-extract.h index b8dca01a9..070cfcb4f 100644 --- a/gameheaders/stratagus-maemo-extract.h +++ b/gameheaders/stratagus-maemo-extract.h @@ -203,10 +203,10 @@ int main(int argc, char * argv[]) { message(GAME_NAME, DATA_NEED_COPY, 0); - if ( stat(GAME_CD_DIR "/" GAME_CD_FILE, &st) != 0 ) { + if ( stat(DATA_DIR "/" GAME_CD_FILE, &st) != 0 ) { char * buf = strdup(GAME_CD_FILE); - char * path = calloc(strlen(GAME_CD_FILE) + strlen(GAME_CD_DIR) + 2, sizeof(char)); + char * path = calloc(strlen(DATA_DIR) + strlen(GAME_CD_FILE) + 2, 1); char * ptr = buf; while ( *ptr ) { @@ -216,7 +216,7 @@ int main(int argc, char * argv[]) { } - sprintf(path, GAME_CD_DIR "/%s", buf); + sprintf(path, DATA_DIR "/%s", buf); if ( stat(path, &st) != 0 ) message(GAME_NAME, DATA_NOT_FOUND, 1);