Skip to content

Commit

Permalink
- Fixed Print.printBuf scaling issues (it saved the length of the buf…
Browse files Browse the repository at this point in the history
…fer, but did strlen(buf) regardless; major issues when reaching strings as short as 5MB).

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4737 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 6, 2010
1 parent 0566cbb commit 75bc477
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Compiler/runtime/printimpl.c
Expand Up @@ -149,9 +149,8 @@ RML_BEGIN_LABEL(Print__printBuf)
}
/* printf("increased -- cursize: %d, nfilled %d\n",cursize,nfilled);*/
}
sprintf((char*)(buf+strlen(buf)),"%s",str);
nfilled=strlen(buf);
/* printf("%s",str);*/
nfilled += sprintf((char*)(buf+nfilled),"%s",str);
/*printf("%s",str);*/

RML_TAILCALLK(rmlSC);
}
Expand Down

0 comments on commit 75bc477

Please sign in to comment.