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(
Update of bug #45880 (group screen):
Status: Confirmed => Fixed
Open/Closed:Open => Closed
Release:None => 5.0.0
Fixed Release:
CVSROOT:/web/screen
Module name:screen
Changes by: Alexander Naumov 24/09/05 04:37:35
Modified files:
manual : index.html screen.dvi.gz screen.html
screen.html.gz screen.html_node.tar.gz
screen.info.tar.gz sc
Follow-up Comment #3, bug #66147 (group screen):
Good point! As you mentioned, the ARRAY_SIZE macro will try to find the size
of the pointer to the array of unknown length, and will devolve to simply the
size of the pointer over the size of a char (8/1).
Upon further examination, the code change