mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-22 15:19:16 +02:00
Check that strlcpy behaves as per the OpenBSD man page before wrapping it.
* configure.in: Check that strlcpy behaves as per the OpenBSD man page before wrapping it. (#53933)
This commit is contained in:
parent
ab03b8e9eb
commit
78afc275dc
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* configure.in: Check that strlcpy behaves as per the OpenBSD
|
||||||
|
man page before wrapping it. (#53933)
|
||||||
|
|
||||||
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
||||||
|
|
||||||
* glib/gunicollate.c: (g_utf8_collate_key):
|
* glib/gunicollate.c: (g_utf8_collate_key):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* configure.in: Check that strlcpy behaves as per the OpenBSD
|
||||||
|
man page before wrapping it. (#53933)
|
||||||
|
|
||||||
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
||||||
|
|
||||||
* glib/gunicollate.c: (g_utf8_collate_key):
|
* glib/gunicollate.c: (g_utf8_collate_key):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* configure.in: Check that strlcpy behaves as per the OpenBSD
|
||||||
|
man page before wrapping it. (#53933)
|
||||||
|
|
||||||
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
||||||
|
|
||||||
* glib/gunicollate.c: (g_utf8_collate_key):
|
* glib/gunicollate.c: (g_utf8_collate_key):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* configure.in: Check that strlcpy behaves as per the OpenBSD
|
||||||
|
man page before wrapping it. (#53933)
|
||||||
|
|
||||||
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
||||||
|
|
||||||
* glib/gunicollate.c: (g_utf8_collate_key):
|
* glib/gunicollate.c: (g_utf8_collate_key):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* configure.in: Check that strlcpy behaves as per the OpenBSD
|
||||||
|
man page before wrapping it. (#53933)
|
||||||
|
|
||||||
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
||||||
|
|
||||||
* glib/gunicollate.c: (g_utf8_collate_key):
|
* glib/gunicollate.c: (g_utf8_collate_key):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* configure.in: Check that strlcpy behaves as per the OpenBSD
|
||||||
|
man page before wrapping it. (#53933)
|
||||||
|
|
||||||
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
||||||
|
|
||||||
* glib/gunicollate.c: (g_utf8_collate_key):
|
* glib/gunicollate.c: (g_utf8_collate_key):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* configure.in: Check that strlcpy behaves as per the OpenBSD
|
||||||
|
man page before wrapping it. (#53933)
|
||||||
|
|
||||||
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
|
||||||
|
|
||||||
* glib/gunicollate.c: (g_utf8_collate_key):
|
* glib/gunicollate.c: (g_utf8_collate_key):
|
||||||
|
15
configure.in
15
configure.in
@ -844,18 +844,19 @@ dnl ****************************************
|
|||||||
dnl *** strlcpy/strlcat ***
|
dnl *** strlcpy/strlcat ***
|
||||||
dnl ****************************************
|
dnl ****************************************
|
||||||
# Check for strlcpy
|
# Check for strlcpy
|
||||||
AC_MSG_CHECKING(for OpenBSD strlcpy/strlcat)
|
AC_CACHE_CHECK([for OpenBSD strlcpy/strlcat],glib_cv_have_strlcpy,[
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
int main() {
|
int main() {
|
||||||
char *p = malloc (10);
|
char p[10];
|
||||||
(void) strlcpy (p, "hi", 10);
|
(void) strlcpy (p, "hi", 10);
|
||||||
if (strlcat (p, "bye", 0) != 3)
|
if (strlcat (p, "bye", 0) != 3)
|
||||||
exit (1);
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}], glib_ok=yes, glib_ok=no)
|
}], glib_cv_have_strlcpy=yes,
|
||||||
AC_MSG_RESULT($glib_ok)
|
glib_cv_have_strlcpy=no,
|
||||||
if test "$glib_ok" = "yes"; then
|
glib_cv_have_strlcpy=no)])
|
||||||
|
if test "$glib_cv_have_strlcpy" = "yes"; then
|
||||||
AC_DEFINE(HAVE_STRLCPY,1,[Have functions strlcpy and strlcat])
|
AC_DEFINE(HAVE_STRLCPY,1,[Have functions strlcpy and strlcat])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user