distribution/packages/sysutils/hid_mapper/patches/hid_mapper-03_fix-parser.patch

15 lines
283 B
Diff
Raw Normal View History

2022-02-05 14:23:32 +00:00
--- a/MapReader.cpp
+++ b/MapReader.cpp
@@ -106,7 +106,10 @@
i = 0;
while(i<KEY_NAME_MAXLENGTH && ptr[i]!='\0' && ptr[i]!='\n' && (!isspace(ptr[i])))
- key_name[i] = ptr[i++];
+ {
+ key_name[i] = ptr[i];
+ i++;
+ }
if(i==KEY_NAME_MAXLENGTH)
{