X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/qmail/blobdiff_plain/2117e02ec495fdfd6e96b39778b701a5bcff8aa5..ca51b51d75ecbf78f6c5786b6d3379d296e89d85:/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);