masqmail

diff src/conf.c @ 411:9b93c0a3bd8c

Ensure lvals, rvals and components of address strucs are stripped.
author markus schnalke <meillo@marmaro.de>
date Wed, 29 Feb 2012 12:06:33 +0100
parents eedc23877cd5
children 8a62bebda631
line diff
     1.1 --- a/src/conf.c	Wed Feb 29 12:05:47 2012 +0100
     1.2 +++ b/src/conf.c	Wed Feb 29 12:06:33 2012 +0100
     1.3 @@ -380,8 +380,8 @@
     1.4  	if (!read_lval(in, lval, lsize)) {
     1.5  		return FALSE;
     1.6  	}
     1.7 -
     1.8 -	DEBUG(9) fprintf(stderr, "  lval = %s\n", lval);
     1.9 +	g_strstrip(lval);
    1.10 +	DEBUG(9) fprintf(stderr, "  lval = `%s'\n", lval);
    1.11  	if ((c = fgetc(in) != '=')) {
    1.12  		fprintf(stderr, "'=' expected after %s, char was '%c'\n",
    1.13  				lval, c);
    1.14 @@ -389,7 +389,8 @@
    1.15  	if (!read_rval(in, rval, rsize)) {
    1.16  		return FALSE;
    1.17  	}
    1.18 -	DEBUG(9) fprintf(stderr, "  rval = %s\n", rval);
    1.19 +	g_strstrip(rval);
    1.20 +	DEBUG(9) fprintf(stderr, "  rval = `%s'\n", rval);
    1.21  	return TRUE;
    1.22  }
    1.23