[dovecot-cvs] dovecot/src/login client.c,1.22,1.23

cras at procontrol.fi cras at procontrol.fi
Fri Jan 3 17:57:15 EET 2003


Update of /home/cvs/dovecot/src/login
In directory danu:/tmp/cvs-serv6416/login

Modified Files:
	client.c 
Log Message:
Rewrote rfc822-tokenize.c to work one token at a time so it won't uselessly
take memory, maybe also a bit faster. This caused pretty large changes all
around.

Also moved all string (un)escaping code to lib/strescape.c. 



Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/login/client.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- client.c	27 Dec 2002 20:33:46 -0000	1.22
+++ client.c	3 Jan 2003 15:57:12 -0000	1.23
@@ -8,6 +8,7 @@
 #include "ostream.h"
 #include "process-title.h"
 #include "safe-memset.h"
+#include "strescape.h"
 #include "client.h"
 #include "client-authenticate.h"
 #include "ssl-proxy.h"
@@ -157,7 +158,7 @@
 
 		if (*line == '"')
 			*line++ = '\0';
-		str_remove_escapes(start);
+		str_unescape(start);
 	} else {
 		start = line;
 		while (*line != '\0' && *line != ' ')




More information about the dovecot-cvs mailing list