if (toescape == 0) return str;
- size = ptr-str+toescape;
+ size = ptr-str+toescape+1;
result = calloc(1, size);
if (toescape == 0) return str;
- size = ptr-str+toescape;
+ size = ptr-str+toescape+1;
result = calloc(1, size);
/**********************************************************************
* $Log$
+ * Revision 1.88.2.1 2005/04/21 09:07:41 strk
+ * Applied patch from Ron Mayer fixing a segfault in string escaper funx
+ *
* Revision 1.88 2005/04/14 12:58:59 strk
* Applied patch by Gino Lucrezi fixing bug in string escaping code.
*