unescape: direct assignation for one byte, no need for memcpy()
@@ -209,6 +209,9 @@ int flb_unescape_string_utf8(const char *in_buf, int sz, char *out_buf)
out_buf[count_out] = ch;
esc_out = 1;
}
+ else if (esc_out == 1) {
+ out_buf[count_out] = temp[0];
+ }
else {
memcpy(&out_buf[count_out], temp, esc_out);
}
