* don't forget to append chars while expanding buffers
authorWilfried Göesgens <willi@citadel.org>
Mon, 17 Aug 2009 23:00:45 +0000 (23:00 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 17 Aug 2009 23:00:45 +0000 (23:00 +0000)
libcitadel/lib/stringbuf.c

index f6ec517674c64949394e864476ac630e3fa45225..0a88acbad55f50631ab809ebc31e0a4872489eec 100644 (file)
@@ -930,7 +930,7 @@ long StrECMAEscAppend(StrBuf *Target, const StrBuf *Source, const char *PlainIn)
                        eptr = Target->buf + Target->BufSize - 3; 
                        bptr = Target->buf + Target->BufUsed;
                }
-               else if (*aptr == '"') {
+               if (*aptr == '"') {
                        *bptr = '\\';
                        bptr ++;
                        *bptr = '"';