Commit ad73a8c1 authored by Claes Sjofors's avatar Claes Sjofors

Plc compile warning fix for string inputs

parent 470a5748
......@@ -15289,7 +15289,7 @@ int gcg_comp_m58( gcg_ctx gcgctx, vldh_t_node node)
switch ( bodydef[i].Par->Param.Info.Type) {
case pwr_eType_String:
IF_PR fprintf( gcgctx->files[GCGM1_CODE_FILE],
"strncpy( %c%s->%s, %c%s->%sP, %d);\n",
"strncpy( %c%s->%s, (char *)%c%s->%sP, %d);\n",
GCG_PREFIX_REF,
vldh_IdToStr(0, node->ln.oid),
bodydef[i].Par->Param.Info.PgmName,
......
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