Follow-up Comment #2, bug #66147 (group screen): strncpy(p, *av, ARRAY_SIZE(p) - 1) doesn't do what you're expecting. For char* p, the value of ARRAY_SIZE(p) is constant, i.e. on 64 bit platforms it is 8.
An alternate fix would be to replace the offending strncpy(p, *av, MAXPATHLEN); with strcpy(p, *av); since it is guaranteed to fit because of if (p + len >= m.m.command.cmd + ARRAY_SIZE(m.m.command.cmd) - 1) in https://git.savannah.gnu.org/cgit/screen.git/tree/src/attacher.c#n463. Dan M. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66147> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature