summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2000-07-26 03:51:07 +0000
committerTim Janik <timj@src.gnome.org>2000-07-26 03:51:07 +0000
commit83e49bd036d362eb626afa0aef347c08df3b72be (patch)
tree087b268e5379a09486e1f98f73850264fed8cf8a /acconfig.h
parentcb2f0780515a11bd5ed8138cbf53428bb3c6d2ed (diff)
downloadglib-83e49bd036d362eb626afa0aef347c08df3b72be.tar.gz
added g_strlcat() and g_strlcpy() wrappers, supplied by David Wheeler
Wed Jul 26 05:47:48 2000 Tim Janik <timj@gtk.org> * configure.in: * testglib.c: * gstrfuncs.c: * glib.h: added g_strlcat() and g_strlcpy() wrappers, supplied by David Wheeler <dwheeler@ida.org>: * glib.h, gstrfuncs.c: added g_strlcpy and g_strlcat to support safe manipulation of fixed-length string buffers. These functions were originally developed by Todd Miller to simplify development of security-related programs, and are available on many (but not all) Unix-like systems, including OpenBSD, FreeBSD, and Solaris. See ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/strlcpy.3 and http://www.openbsd.org/security.html. If there's a strlcpy/strlcat on the system, it's called, otherwise an implementation is provided. * testglib.c: Added tests for g_strlcpy, g_strlcat.
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index f79d40031..a3d1ea41f 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -65,6 +65,7 @@
#undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
#undef HAVE_PWD_H
#undef HAVE_PW_GECOS
+#undef HAVE_STRLCPY
#undef HAVE_SYS_PARAM_H
#undef HAVE_SYS_POLL_H
#undef HAVE_SYS_SELECT_H