Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  swrun_*: snprint may have set a too long string length. Fix it if needed.