[dovecot-cvs] dovecot/src/lib-mail rfc822-address.c,1.3,1.4

cras at procontrol.fi cras at procontrol.fi
Thu Dec 19 03:02:37 EET 2002


Update of /home/cvs/dovecot/src/lib-mail
In directory danu:/tmp/cvs-serv11467/lib-mail

Modified Files:
	rfc822-address.c 
Log Message:
Buffer related cleanups. Use PATH_MAX instead of hardcoded 1024 for paths.
Added str_path() and str_ppath() functions. i_snprintf() now returns only -1
or 0 depending on if buffer got full. dec2str() returns the string allocated
from data stack. Instead of just casting to (long) or (int), we now use
dec2str() with printf-like functions. Added o_stream_send_str(). Added
strocpy() and replaced all strcpy()s and strncpy()s with it.

Pretty much untested, hope it doesn't break too badly :)



Index: rfc822-address.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/rfc822-address.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- rfc822-address.c	7 Oct 2002 15:18:59 -0000	1.3
+++ rfc822-address.c	19 Dec 2002 01:02:35 -0000	1.4
@@ -36,7 +36,7 @@
 			t_string_append_n(comment, tokens[i].ptr,
 					  tokens[i].len);
 
-			string_remove_escapes(comment->str + pos);
+			str_remove_escapes(comment->str + pos);
 			comment->len = strlen(comment->str);
 		}
 	}




More information about the dovecot-cvs mailing list