jcs
/subtext
/amendments
/78
settings: Fix storage of short fields
THINK C is treating "&new_config + 32" as
"&new_config + (sizeof(struct config) * 32)" so cast it to char *
jcs made amendment 78 over 2 years ago
--- settings.c Fri Feb 18 11:27:52 2022
+++ settings.c Mon Feb 21 11:34:41 2022
@@ -160,7 +160,7 @@ get_input:
goto get_input;
}
sval = lval;
- memcpy(&new_config + cf->off, &sval, sizeof(short));
+ memcpy((char *)&new_config + cf->off, &sval, sizeof(short));
break;
}
}