1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

replaced memcpy by strncpy to get rid of warning

This commit is contained in:
Falk Werner 2019-02-15 16:21:35 +01:00
parent 0279f1f7bd
commit b90488678a

View File

@ -24,7 +24,7 @@ static wsfs_status wsfs_fill_buffer(
{ {
if (0 == strcmp("identity", format)) if (0 == strcmp("identity", format))
{ {
memcpy(buffer, data, copy_count); strncpy(buffer, data, copy_count);
} }
else if (0 == strcmp("base64", format)) else if (0 == strcmp("base64", format))
{ {