parse.gperf: make memcpy() call happy
Hopefully this doesn't break anything; I'm struggling to understand how this stuff works.
This commit is contained in:
parent
30d82dfc6a
commit
b897e47cc2
1 changed files with 1 additions and 1 deletions
|
|
@ -304,5 +304,5 @@ void parse_one_option(struct cfginfo *restrict tmpcfg, const char *str, const ch
|
||||||
exit(53);
|
exit(53);
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(offset+(char*)tmpcfg, &opt, sizeof(char*)); /* FIXME: This causes a warning; should it be 'sizeof(char)', or do we need to have the warning suppressed? -bjk 2021.10.14 */
|
memcpy((char**) (offset + (char*) tmpcfg), &opt, sizeof(char*));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue