Skip to content

Commit 390afd3

Browse files
committed
Fix parsing, update tests
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17476 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 34ae14c commit 390afd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Parser/BaseModelica_Lexer.g

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,9 @@ STRING : '"' STRING_GUTS '"'
319319
if (!*res) {
320320
const char *strs[2];
321321
signed char buf[76];
322-
int len = strlen((const char*)buf), i;
322+
int len, i;
323323
res = SystemImpl__iconv__ascii((const char*)text->chars);
324+
len = strlen((const char*)res);
324325
/* Avoid printing huge strings */
325326
if (len > 75) {
326327
len = 72;

0 commit comments

Comments
 (0)