Skip to content

Commit

Permalink
DEVTOOLS: Fix remaining bug in create_teenagent message string output.
Browse files Browse the repository at this point in the history
Second block start position calculation was incorrect.
  • Loading branch information
digitall committed Jul 25, 2012
1 parent ed6590c commit 1b17831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devtools/create_teenagent/create_teenagent.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 1b17831

Please sign in to comment.