From 1b178317a84cec166f969ffde5763b8c9acd8164 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Wed, 25 Jul 2012 02:36:22 +0100 Subject: DEVTOOLS: Fix remaining bug in create_teenagent message string output. Second block start position calculation was incorrect. --- devtools/create_teenagent/create_teenagent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'devtools/create_teenagent') diff --git a/devtools/create_teenagent/create_teenagent.cpp b/devtools/create_teenagent/create_teenagent.cpp index ade61ff208..e01ca76bcc 100644 --- a/devtools/create_teenagent/create_teenagent.cpp +++ b/devtools/create_teenagent/create_teenagent.cpp @@ -143,9 +143,9 @@ int main(int argc, char *argv[]) { uint dsegFinalSize = 0xe790; - printf("const static uint8 dsegFinalBlock[%d] = {\n", dsegFinalSize - dsegMessageSize); + printf("const static uint8 dsegFinalBlock[%d] = {\n", dsegFinalSize - dsegMessageSize - 1); uint j = 0; - for (uint i = dsegMessageSize; i < dsegFinalSize; i++, j++) { + for (uint i = dsegMessageSize + 1; i < dsegFinalSize; i++, j++) { if ((j % 8) == 0) printf("\t"); else -- cgit v1.2.3