diff options
-rw-r--r-- | devtools/create_teenagent/create_teenagent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |