From 5ef18c48f13a715dc2c8c66fcf20bd6fa87e31bc Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Fri, 5 Jun 2015 15:55:43 +0300 Subject: [PATCH] bugfix: archiver doesn't add suffix if logname contains macro --- src/3proxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/3proxy.c b/src/3proxy.c index 74a008c..4488785 100644 --- a/src/3proxy.c +++ b/src/3proxy.c @@ -360,9 +360,8 @@ unsigned char * dologname (unsigned char *buf, unsigned char *name, const unsign memset(&fakecli, 0, sizeof(fakecli)); dobuf2(&fakecli, buf, NULL, NULL, ts, (char *)name); - return buf; } - switch(lt){ + else switch(lt){ case NONE: sprintf((char *)buf, "%s", name); break;