[M3commit] CVS Update: cm3

Jay Krell jkrell at elego.de
Sun Dec 13 16:35:58 CET 2009


CVSROOT:	/usr/cvs
Changes by:	jkrell at birch.	09/12/13 16:35:58

Modified files:
	cm3/m3-libs/m3core/src/C/Common/: Cstring.i3 CstringC.c 

Log message:
	OpenBSD linker rightfully complains (warns) about strcpy and strcat:
	new "/cm3/pkg/m3core/SPARC64_OPENBSD/libm3core.a" -> linking m3bundle
	/cm3/pkg/m3core/SPARC64_OPENBSD/libm3core.a(CstringC.o)(.text+0xfc): In function
	`Cstring__strcpy':
	/dev2/cm3/m3-libs/m3core/SPARC64_OPENBSD/../src/C/Common/CstringC.c:19: warning:
	strcpy() is almost always misused, please use strlcpy()
	/cm3/pkg/m3core/SPARC64_OPENBSD/libm3core.a(CstringC.o)(.text+0x15c): In functio
	n `Cstring__strcat':
	/dev2/cm3/m3-libs/m3core/SPARC64_OPENBSD/../src/C/Common/CstringC.c:21: warning:
	strcat() is almost always misused, please use strlcat()
	$
	
	so provide only the old style <* extern *> and not a wrapper, so
	that we don't foist the warning on every Modula-3/OpenBSD user,
	just anyone actually using these bad functions.




More information about the M3commit mailing list