[dovecot-cvs] dovecot/src/plugins/imap-quota imap-quota-plugin.c, 1.6, 1.7

cras at dovecot.org cras at dovecot.org
Tue May 2 23:01:35 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/imap-quota
In directory talvi:/tmp/cvs-serv4523

Modified Files:
	imap-quota-plugin.c 
Log Message:
Don't add extra spaces to reply if some of the resources aren't really found.



Index: imap-quota-plugin.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/imap-quota/imap-quota-plugin.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- imap-quota-plugin.c	1 Mar 2006 09:14:59 -0000	1.6
+++ imap-quota-plugin.c	2 May 2006 20:01:33 -0000	1.7
@@ -27,7 +27,7 @@
 
 	str_append(str, " (");
 	list = quota_root_get_resources(root);
-	for (i = 0; *list != NULL; list++, i++) {
+	for (i = 0; *list != NULL; list++) {
 		ret = quota_get_resource(root, *list, &value, &limit);
 		if (ret > 0) {
 			if (i > 0)
@@ -35,6 +35,7 @@
 			str_printfa(str, "%s %llu %llu", *list,
 				    (unsigned long long)value,
 				    (unsigned long long)limit);
+			i++;
 		} else if (ret < 0) {
 			client_send_line(cmd->client, t_strconcat(
 				"* BAD ", quota_last_error(quota), NULL));



More information about the dovecot-cvs mailing list