Skip to content

Commit

Permalink
Fix frame damage on unescaping
Browse files Browse the repository at this point in the history
  • Loading branch information
sorz committed Nov 20, 2016
1 parent 44ade78 commit 9db86b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sstpd/codecmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ codec_unescape(PyObject *self, PyObject *args)
buffer = malloc(sizeof(char[data_len + ldata_len]));
if (!buffer)
return PyErr_NoMemory();
strncpy(buffer, ldata, ldata_len);
memcpy(buffer, ldata, ldata_len);
pos = ldata_len;

frames = PyList_New(0);
Expand Down

0 comments on commit 9db86b6

Please sign in to comment.