]> granicus.if.org Git - neomutt/commitdiff
Fix an off-by-one error.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 15 Jan 2002 09:03:33 +0000 (09:03 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 15 Jan 2002 09:03:33 +0000 (09:03 +0000)
pattern.c

index e468915649d1869a4f230dd81f8cc2c5873d2dc2..1803bbcdb602c17796bb62e880d5948456b3fac4 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -1063,7 +1063,7 @@ static void quote_simple(char *tmp, size_t len, const char *p)
   int i = 0;
   
   tmp[i++] = '"';
-  while (*p && i < len - 2)
+  while (*p && i < len - 3)
   {
     if (*p == '\\' || *p == '"')
       tmp[i++] = '\\';