Fix: Use DEFINE instead of plain number.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Sun, 05 Jun 2011 18:44:58 +0300
changeset 5685 731a7c70eded
parent 5684 d67b7490be36
child 5686 a7d699502230
Fix: Use DEFINE instead of plain number.
test/test-automation/runner.c
--- a/test/test-automation/runner.c	Sun Jun 05 18:38:06 2011 +0300
+++ b/test/test-automation/runner.c	Sun Jun 05 18:44:58 2011 +0300
@@ -354,7 +354,7 @@
 		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;
 	}