From c94ec5d31e44889fb1e06c1436ccd76b7ce967a7 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 12 Sep 2000 11:38:14 +0000 Subject: [PATCH] correct arguments to some snprintf:s git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9052 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/kafs/dlfcn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kafs/dlfcn.c b/lib/kafs/dlfcn.c index e664fe3e5..728cf5cdd 100644 --- a/lib/kafs/dlfcn.c +++ b/lib/kafs/dlfcn.c @@ -115,12 +115,12 @@ void *dlopen(const char *path, int mode) } if ((mp = (ModulePtr)calloc(1, sizeof(*mp))) == NULL) { errvalid++; - snprintf (errbuf, "calloc: %s", strerror(errno)); + snprintf (errbuf, sizeof(errbuf), "calloc: %s", strerror(errno)); return NULL; } if ((mp->name = strdup(path)) == NULL) { errvalid++; - snprintf (errbuf, "strdup: %s", strerror(errno)); + snprintf (errbuf, sizeof(errbuf), "strdup: %s", strerror(errno)); free(mp); return NULL; }