From 4009574b70564ae9f04e8407b76e7a970de18066 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 25 Nov 2002 21:43:35 +0000 Subject: [PATCH] Document that the varargs must be NULL-terminated. (#99510) * glib/gfileutils.c (g_build_path): (g_build_filename): Document that the varargs must be NULL-terminated. (#99510) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-12 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ glib/gfileutils.c | 4 ++-- 8 files changed, 30 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fbc240d6..51dcd233 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2002-11-25 Matthias Clasen + * glib/gfileutils.c (g_build_path): + (g_build_filename): Document that the varargs must be + NULL-terminated. (#99510) + * glib/gmessages.h (g_assert): (g_return_if_fail): (g_return_val_if_fail): Remove the (no longer effective) empty diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index fbc240d6..51dcd233 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2002-11-25 Matthias Clasen + * glib/gfileutils.c (g_build_path): + (g_build_filename): Document that the varargs must be + NULL-terminated. (#99510) + * glib/gmessages.h (g_assert): (g_return_if_fail): (g_return_val_if_fail): Remove the (no longer effective) empty diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index fbc240d6..51dcd233 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,9 @@ 2002-11-25 Matthias Clasen + * glib/gfileutils.c (g_build_path): + (g_build_filename): Document that the varargs must be + NULL-terminated. (#99510) + * glib/gmessages.h (g_assert): (g_return_if_fail): (g_return_val_if_fail): Remove the (no longer effective) empty diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index fbc240d6..51dcd233 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,9 @@ 2002-11-25 Matthias Clasen + * glib/gfileutils.c (g_build_path): + (g_build_filename): Document that the varargs must be + NULL-terminated. (#99510) + * glib/gmessages.h (g_assert): (g_return_if_fail): (g_return_val_if_fail): Remove the (no longer effective) empty diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index fbc240d6..51dcd233 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,9 @@ 2002-11-25 Matthias Clasen + * glib/gfileutils.c (g_build_path): + (g_build_filename): Document that the varargs must be + NULL-terminated. (#99510) + * glib/gmessages.h (g_assert): (g_return_if_fail): (g_return_val_if_fail): Remove the (no longer effective) empty diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index fbc240d6..51dcd233 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2002-11-25 Matthias Clasen + * glib/gfileutils.c (g_build_path): + (g_build_filename): Document that the varargs must be + NULL-terminated. (#99510) + * glib/gmessages.h (g_assert): (g_return_if_fail): (g_return_val_if_fail): Remove the (no longer effective) empty diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index fbc240d6..51dcd233 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2002-11-25 Matthias Clasen + * glib/gfileutils.c (g_build_path): + (g_build_filename): Document that the varargs must be + NULL-terminated. (#99510) + * glib/gmessages.h (g_assert): (g_return_if_fail): (g_return_val_if_fail): Remove the (no longer effective) empty diff --git a/glib/gfileutils.c b/glib/gfileutils.c index 86ef6ea9..026db97f 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -862,7 +862,7 @@ g_build_pathv (const gchar *separator, * g_build_path: * @separator: a string used to separator the elements of the path. * @first_element: the first element in the path - * @Varargs: remaining elements in path + * @Varargs: remaining elements in path, terminated by %NULL * * Creates a path from a series of elements using @separator as the * separator between elements. At the boundary between two elements, @@ -914,7 +914,7 @@ g_build_path (const gchar *separator, /** * g_build_filename: * @first_element: the first element in the path - * @Varargs: remaining elements in path + * @Varargs: remaining elements in path, terminated by %NULL * * Creates a filename from a series of elements using the correct * separator for filenames. This function behaves identically -- 2.34.1