summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-04-17 11:09:03 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-04-17 11:11:00 +0300
commit64e0af29bd38a1f8ca6573ec9734ae475ed8909b (patch)
treeb416f9d9fb9e9eeca7d6535c90789b06b4dcead6
parent9a6be3e53feb1a32e446419c6fef910eeca74f01 (diff)
downloadrpm-64e0af29bd38a1f8ca6573ec9734ae475ed8909b.tar.gz
rpm-64e0af29bd38a1f8ca6573ec9734ae475ed8909b.tar.bz2
rpm-64e0af29bd38a1f8ca6573ec9734ae475ed8909b.zip
Have gcc check for NULL terminated arglist in rstrscat
-rw-r--r--rpmio/rpmstring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmstring.h b/rpmio/rpmstring.h
index 1947da2f5..54eeaf1e1 100644
--- a/rpmio/rpmstring.h
+++ b/rpmio/rpmstring.h
@@ -122,7 +122,7 @@ char *rstrcat(char **dest, const char *src);
* @param arg NULL terminated list of strings to concatenate
* @return realloc'd dest with strings appended
*/
-char *rstrscat(char **dest, const char *arg, ...);
+char *rstrscat(char **dest, const char *arg, ...) RPM_GNUC_NULL_TERMINATED;
/** \ingroup rpmstring
* Split string into fields separated by a character.