Commit eabf682a authored by Claes Sjofors's avatar Claes Sjofors

Plc StrAdd bugfix for too long strings

parent 0adb7804
...@@ -1573,7 +1573,7 @@ void StrAdd_exec( ...@@ -1573,7 +1573,7 @@ void StrAdd_exec(
pwr_tString80 sum = ""; pwr_tString80 sum = "";
for ( i = 0; i < STRADD_SIZE; i++) { for ( i = 0; i < STRADD_SIZE; i++) {
strncat( sum, **inp, sizeof(sum)); strncat( sum, **inp, sizeof(sum)-strlen(sum)-1);
inp = (pwr_tString80 **)((char *)inp + pwr_cInputOffsetStr); inp = (pwr_tString80 **)((char *)inp + pwr_cInputOffsetStr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment