distribution/packages/sysutils/hid_mapper/patches/hid_mapper-03_fix-parser.patch
2022-02-05 09:23:32 -05:00

14 lines
283 B
Diff

--- 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)
{