keyin - remove strncpy (so its strcpy) because its useless

wel alloc the buffer to be precisely the right size anyway so strncpy
is just more complex code that leads to warnings.
This commit is contained in:
Carsten Haitzler 2018-11-16 12:58:27 +00:00
parent 0d19a81c7f
commit 0d7473cd5d
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ key_binding_lookup(const char *keyname,
kb->hyper = hyper;
kb->len = len;
kb->keyname = alloca(sizeof(char) * len + 1);
strncpy((char *)kb->keyname, keyname, kb->len + 1);
strcpy((char *)kb->keyname, keyname);
return eina_hash_find(_key_bindings, kb);
}