From e11aef6b83fbfcbb532a095fe086281daf2a2825 Mon Sep 17 00:00:00 2001 From: Markus Kauppila Date: Sun, 5 Jun 2011 18:44:58 +0300 Subject: [PATCH] Fix: Use DEFINE instead of plain number. --- test/test-automation/runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-automation/runner.c b/test/test-automation/runner.c index 6b3be7080..d4208e867 100644 --- a/test/test-automation/runner.c +++ b/test/test-automation/runner.c @@ -354,7 +354,7 @@ SuiteIsSelected(char *testSuiteName) { int length = len - DIR_NAME_LENGTH - FILE_EXT_LENGTH; memset(buffer, 0, NAME_BUFFER_SIZE); - memcpy(buffer, testSuiteName + 6, length); + memcpy(buffer, testSuiteName + DIR_NAME_LENGTH, length); retVal = SDL_strncmp(selected_suite_name, buffer, NAME_BUFFER_SIZE) == 0; }