Explorar o código

bugfix: archiver doesn't add suffix if logname contains macro

z3APA3A %!s(int64=10) %!d(string=hai) anos
pai
achega
5ef18c48f1
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/3proxy.c

+ 1 - 2
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;