diff options
author | Johannes Schickel | 2010-05-05 17:54:12 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-05-05 17:54:12 +0000 |
commit | caf31ee5afb61a88342176473bf77ebddc098ca4 (patch) | |
tree | bc0ec2794958a722d314af38c00d65a9a058b0cf /backends/keymapper/hardware-key.h | |
parent | 7da8c8949b56835cf87f88ffd6cfb8204c711592 (diff) | |
download | scummvm-rg350-caf31ee5afb61a88342176473bf77ebddc098ca4.tar.gz scummvm-rg350-caf31ee5afb61a88342176473bf77ebddc098ca4.tar.bz2 scummvm-rg350-caf31ee5afb61a88342176473bf77ebddc098ca4.zip |
Replace various strncpy usages by strlcpy.
svn-id: r48955
Diffstat (limited to 'backends/keymapper/hardware-key.h')
-rw-r--r-- | backends/keymapper/hardware-key.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/keymapper/hardware-key.h b/backends/keymapper/hardware-key.h index dc83462de8..7c608a53fc 100644 --- a/backends/keymapper/hardware-key.h +++ b/backends/keymapper/hardware-key.h @@ -60,7 +60,7 @@ struct HardwareKey { KeyType typ = kGenericKeyType, ActionType prefAct = kGenericActionType) : key(ky), description(desc), type(typ), preferredAction(prefAct) { assert(i); - strncpy(hwKeyId, i, HWKEY_ID_SIZE); + Common::strlcpy(hwKeyId, i, HWKEY_ID_SIZE); } }; |