summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2022-11-25 12:29:52 +1300
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-11-26 10:33:31 +0000
commit04217d8c283b6567ba631389b06343ee5ee3c3ab (patch)
treec184fc9d6b5912f08068e626934ccd7adb6ef8fe
parentedec8f0e6557777e9731245ba2cf8282110de33c (diff)
downloadswig-04217d8c283b6567ba631389b06343ee5ee3c3ab.tar.gz
Follow-on fix for previous change
These cases don't trigger ubsan warnings and seem to work locally for me, but CI was failing on a number of builds. See #2447
-rw-r--r--Source/CParse/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y
index 6dbdc46c5..699ff2b5a 100644
--- a/Source/CParse/parser.y
+++ b/Source/CParse/parser.y
@@ -5293,13 +5293,13 @@ valparm : parm {
callparms : valexpr callptail {
$$ = $1;
- Printf($$.val, "%s", $2);
+ Printf($$.val, "%s", $2.val);
}
| empty { $$.val = NewStringEmpty(); }
;
callptail : COMMA valexpr callptail {
- $$.val = NewStringf(",%s%s", $2, $3);
+ $$.val = NewStringf(",%s%s", $2.val, $3.val);
$$.type = 0;
}
| empty { $$.val = NewStringEmpty(); }