Article Title : xremote_port_to_alpha Creation Date : 6-11-93 Author : NCD Technical Support Last Update : 6-11-93 Last Update By : NCD Technical Support Expiration Rules : ============================================================================= Caveats found while porting Xremote to a DEC Alpha (64-bit) machine running OSF/1: - Long integers are 64 bits. This breaks the code implementing the LZW compression algorithm. For a quick fix, I added "-Dlong=int" to the compile line (ints are still 32-bits). There were a few compiler warnings about redundant defintions, as some variables were delcared to be "long int." However, the code seemed to run fine. - The strncpy function does not append a null to the destination string after copying the requested number of characters. This was causing xinitremote to crash. A strncpy followed by a strcat was overrunning a malloc'ed string area, causing a segmentation violation on a later call to malloc. I am told this is a Berkeley-ism, as I have never encountered it on a System V machine. Maybe I've just been lucky. In any case, all strncpy calls should be followed by explicitly adding a null character to the correct location in the destination string.