mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
l_set_option() was passing the address of an int to option_types[OPT_INT].set and option_types[OPT_BOOL].set. That looks correct but is not: both function pointers point to num_set(), which actually reads *(long *) str. Change l_set_option() to pass the address of a long instead, and add comments about this dependency. (cherry picked from elinks-0.11 commit 8766e3829f4156fca541bc01784c4fdf46a89dad) (cherry picked from elinks-0.12 commit 0797f04921f5fb2dada86d53b7655adf634751f5)