We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f02a5b commit 90b7579Copy full SHA for 90b7579
CHANGELOG.md
@@ -1,5 +1,9 @@
1
## CHANGELOG
2
3
+### v0.1.2 (2020-05-31)
4
+
5
+* Memory copy changes to improve stability and performance.
6
7
### v0.1.1 (2020-04-23)
8
9
* New string_buffer_is_released function.
src/string_buffer.c
@@ -280,8 +280,9 @@ char *string_buffer_to_string(struct StringBuffer *buffer)
280
}
281
282
buffer->value[content_size] = 0;
283
+ string_copy[content_size] = 0;
284
- string_copy = strncpy(string_copy, buffer->value, content_size);
285
+ memcpy(string_copy, buffer->value, memory_size);
286
string_copy[content_size] = 0;
287
288
return(string_copy);
0 commit comments