Fix #79311: enchant_dict_suggest() fails on big endian architecture
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 28 Feb 2020 12:18:00 +0000 (13:18 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 28 Feb 2020 14:43:44 +0000 (15:43 +0100)
commit6adb885966502f53c69b9aeb0e2cbbeac3d6c65a
treec1b85890d795bd9a8f655e5c8c6de51d996425a8
parentd31fc591e0a852c69b81b3311b3609221f66c445
Fix #79311: enchant_dict_suggest() fails on big endian architecture

For obvious reasons, we must not assign a `size_t` value to an `int`
variable using memcpy().  However, there is actually no need for the
intermediate `n_sugg_st` here, if we use the proper types in the first
place.

A regression test is not necessary, because dict_suggest.phpt already
exhibits the erroneous behavior on big endian architectures.
NEWS
ext/enchant/enchant.c