Source code is strncpy(pass_through, dev_name, sizeof(pass_through)-2); strcat(pass_through, "p" ); maybe strncpy(pass_through, dev_name, sizeof(pass_through)-2); pass_through[sizeof(pass_through)-2] = '\0'; strcat(pass_through, "p" ); might be better code.
Git commit 46f8c6a334a3007fb370e541ed7748d1b532255f by Michael Pyne. Committed on 21/02/2014 at 03:42. Pushed by mpyne into branch 'KDE/4.12'. Be safer with strncpy. Hard to believe we're maintaining a bunch of slightly-different C files for Unix systems only a dusty mainframe could love. Thanks to the bug reporter for reporting static analyzer results. FIXED-IN:4.12.3 M +1 -0 wmlib/plat_scor5.c M +1 -0 wmlib/plat_svr4.c http://commits.kde.org/libkcompactdisc/46f8c6a334a3007fb370e541ed7748d1b532255f