[dovecot-cvs] dovecot/src/lib var-expand.c,1.6,1.7

cras at dovecot.org cras at dovecot.org
Sun Sep 11 22:56:05 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv26624/lib

Modified Files:
	var-expand.c 
Log Message:
Fix to hash modifier handling



Index: var-expand.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/var-expand.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- var-expand.c	1 Sep 2005 07:57:35 -0000	1.6
+++ var-expand.c	11 Sep 2005 19:56:03 -0000	1.7
@@ -53,11 +53,10 @@
 		value %= ctx->width;
 		ctx->width = 0;
 	}
+
 	str_printfa(hash, "%x", value);
-	while (str_len(hash) < ctx->offset) {
+	while (str_len(hash) < ctx->offset)
 		str_insert(hash, 0, "0");
-		ctx->offset--;
-	}
         ctx->offset = 0;
 
 	return str_c(hash);



More information about the dovecot-cvs mailing list