fix memccpy() in tool.c, thanks khindenburg

see macports ticket 41174
Merge branch '7.38'

Conflicts:
	ChangeLog
	configure.ac