w3mail

program to send a web page by email
git clone https://logand.com/git/w3mail.git/
Log | Files | Refs | README | LICENSE

commit fd36e76ea06985c72c27bf42f12156e4f5f9a11e
parent 094e8a216592321bd680e6705f3981d6bf78c927
Author: Tomas Hlavaty <tom@logand.com>
Date:   Wed, 19 Jan 2011 09:22:11 +0100

bug fix in dir() after varargs used

Diffstat:
Mutils.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils.c b/utils.c @@ -75,7 +75,7 @@ void dir(void *udata, dir_cb cb, char *path, ...) { va_list v; va_start(v, path); char buf[BLEN]; - snprintf(buf, BLEN, path, v); + vsnprintf(buf, BLEN, path, v); DIR *d = opendir(buf); if(!d) die(1, "dir(): cannot open dir '%s'", buf); struct dirent *e;