We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8efd087 commit 4985c81Copy full SHA for 4985c81
xs/sources/xsGlobal.c
@@ -296,12 +296,13 @@ void fx_escape(txMachine* the)
296
else
297
length = fxAddChunkSizes(the, length, 12);
298
}
299
+ length = fxAddChunkSizes(the, length, 1);
300
if (length == (src - mxArgv(0)->value.string)) {
301
mxResult->value.string = mxArgv(0)->value.string;
302
mxResult->kind = mxArgv(0)->kind;
303
return;
304
- mxResult->value.string = fxNewChunk(the, fxAddChunkSizes(the, length, 1));
305
+ mxResult->value.string = fxNewChunk(the, length);
306
mxResult->kind = XS_STRING_KIND;
307
src = mxArgv(0)->value.string;
308
dst = mxResult->value.string;
0 commit comments