Corrected an issue in genlib.c where a strcpy was used with overlapping buffers.