changeset 5109:145587c11207

[gaim-migrate @ 5472] I like this solution to the passwords-ends-in-a-space problem better. It doesn't make every away message have escaped spaces. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 11 Apr 2003 07:49:15 +0000
parents 0a34e69c1575
children 496ea7c1b77b
files src/gaimrc.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gaimrc.c	Fri Apr 11 07:17:44 2003 +0000
+++ b/src/gaimrc.c	Fri Apr 11 07:49:15 2003 +0000
@@ -153,7 +153,9 @@
 				p->value[curval][vallen] = *c;
 
 				vallen++;
-				if (! isspace(*c))
+				if (isspace(*c))
+					last_non_space = vallen - 1;
+				else
 					last_non_space = vallen;
 				c++;
 				continue;
@@ -241,7 +243,6 @@
 		case '}':
 		case '\\':
 		case '"':
-		case ' ':
 			woo[cnt++] = '\\';
 			/* Fall through */
 		default: