X-Git-Url: https://git.distorted.org.uk/~mdw/qmail/blobdiff_plain/2117e02ec495fdfd6e96b39778b701a5bcff8aa5..212b6f5da7c68d4577de2855da3c57ecf476dc96:/quote.c?ds=sidebyside diff --git a/quote.c b/quote.c index 9f97d93..659cfcd 100644 --- a/quote.c +++ b/quote.c @@ -45,7 +45,7 @@ unsigned int n; { unsigned char uch; int i; - if (!n) return 0; + if (!n) return 1; for (i = 0;i < n;++i) { uch = s[i]; @@ -73,6 +73,7 @@ stralloc *sa; char *s; { int j; + if (!*s) return stralloc_copys(sa,s); j = str_rchr(s,'@'); if (!stralloc_copys(&foo,s)) return 0; if (!s[j]) return quote(sa,&foo);