[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
purple hosts - better fix
- To: hobbit (at) hswn.dk
- Subject: purple hosts - better fix
- From: Cade Robinson <cade.robinson (at) gmail.com>
- Date: Wed, 17 Feb 2010 10:30:45 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=R1QZNFSkvLRZf6KVv9OTdBHv5sEwYT7UIp9FNTABmNw=; b=UEaJNQTSzPgj5h+zOZWJNPhDXUTdHDd9wCb8VXSyzvEpSqHxXkM+QpAt0Vz0/kpgx5 8LdrdoKfCgJFuLF/pnxrk3hb9D79EusrwT1OiuzPHHd9YGKMfPZUoRoJ2iC3rwgouZGP FBbEnYbac0J1wlAwzYjCYTOPDgP/CtARmlS4M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=Mga8CJ9+hA5KyrqnKpRng/scUofXv/bNzcQz/rJlz7VIluiTzm04RvK7k57JwB3riZ 5vwZPK5isXl66OO2q6RUW99Sg9Dj0nwlMhZlJUyzn1yOGUzqNFBRFpjB5rLVhlCNlN94 n2UiDJVqqws/j/+q6/PGgn+lYRdmW4TL/6VqE=
I think this is a better fix for purple hosts.
I was thinking about why there was the while loop and I am guessing
there could be a duration like: 1d4h10m
So with that I left the while loop in and at the end of the block where
startofval is set if *p I changed the test since space counts as a valid
char for *p.
This is in the 4.4.0 branch so the line numbers may not match for other
source versions.
Index: lib/timefunc.c
===================================================================
--- lib/timefunc.c (revision 6223)
+++ lib/timefunc.c (working copy)
@@ -475,7 +475,7 @@
}
result += oneval;
- startofval = ((*p) ? p+1 : NULL);
+ startofval = ((*p) ? ((isspace((int)*p)) ? NULL : p+1) :
NULL );
}
return result;