This fixes bug 776354.
[awesomized/libmemcached] / libmemcached / options / parser.cc
index c0c5cc25294f0c48b1b98020bb3af178600c0bd8..fc08ed816c857af8d765a33088e0d5976fae8c26 100644 (file)
@@ -2066,7 +2066,7 @@ yyreduce:
 #line 438 "libmemcached/options/parser.yy"
     {
             (yyval.string).c_str= (yyvsp[(1) - (1)].string).c_str +1; // +1 to move use passed the initial quote
-            (yyval.string).length= (yyvsp[(1) - (1)].string).length -1; // -1 removes the end quote
+            (yyval.string).length= (yyvsp[(1) - (1)].string).length -2; // -2 removes the begin and end quote
           ;}
     break;