]> granicus.if.org Git - php/commitdiff
Fix bug in unaligned memory access fix
authorRaphael Geissert <geissert@php.net>
Sun, 2 May 2010 05:01:51 +0000 (05:01 +0000)
committerRaphael Geissert <geissert@php.net>
Sun, 2 May 2010 05:01:51 +0000 (05:01 +0000)
ext/enchant/enchant.c

index a2ca8853b78a63a694d3906b01d0e58639ef1670..645239427dbe22b4b8cb55e7c0796f76def2e0ec 100755 (executable)
@@ -737,7 +737,7 @@ PHP_FUNCTION(enchant_dict_quick_check)
 
                array_init(sugg);
 
-               suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, n_sugg_st);
+               suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg_st);
                memcpy(&n_sugg, &n_sugg_st, sizeof(n_sugg));
                if (suggs && n_sugg) {
                        int i;