From 9582b8384d61ecb22d8a4f9b95685b54312ba68b Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Sun, 8 Apr 2001 00:38:00 +0000 Subject: It would be a good idea to recognize '\0'. Before, this code was running 001-04-07 Peter Williams * providers/imap/camel-imap-utils.c (imap_parse_string_generic): It would be a good idea to recognize '\0'. Before, this code was running off the ends of strings and intermittently coredumping (if it didn't hit an imap_atom_char first) -- whoops! svn path=/trunk/; revision=9202 --- camel/providers/imap/camel-imap-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/providers') diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index 1ec8e79eaf..e7c0a050ca 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -275,7 +275,7 @@ imap_parse_string_generic (char **str_p, int *len, int type) return NULL; } else if (type == IMAP_ASTRING && imap_is_atom_char ((unsigned char)*str)) { - while (imap_is_atom_char ((unsigned char)*str)) + while (imap_is_atom_char ((unsigned char)*str) && *str != '\0') str++; *len = str - *str_p; -- cgit '/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/'>freebsd-ports-gnome
FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - MAN3PREFIX is implied when PERL_CONFIGURE is defined.clsung2006-06-261-2/+0
* SHA256ifyedwin2006-01-241-0/+1
* Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-1/+1
* - Upgrade to 804.027.vanilla2004-06-114-7/+33
* - Update to version 804.025.b16krion2004-04-083-17/+47
* SIZEify (maintainer timeout)trevor2004-03-311-0/+1
* Upgrade to latest version.vanilla2003-11-193-3/+14
* Upgrade to 804.025.b5, and assign MAINTAINER to submitter.vanilla2003-11-134-29/+76