termio: use memcpy() is enough here

This commit is contained in:
Boris Faure 2022-04-30 15:53:47 +02:00
parent 056b56c55b
commit 5a12ff7b1f
Signed by: borisfaure
GPG Key ID: EAA9CD729F522998
1 changed files with 1 additions and 1 deletions

View File

@ -4115,7 +4115,7 @@ _smart_cb_drop(void *data,
if (*p) if (*p)
{ {
len = strlen(p); len = strlen(p);
strncpy(buf, p, len); memcpy(buf, p, len);
buf[len] = '\0'; buf[len] = '\0';
if (extn_is_media(buf, len)) if (extn_is_media(buf, len))
evas_object_smart_callback_call(obj, "popup,queue", buf); evas_object_smart_callback_call(obj, "popup,queue", buf);