geissert Sun, 02 May 2010 05:01:51 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=298870
Log: Fix bug in unaligned memory access fix Changed paths: U php/php-src/branches/PHP_5_3/ext/enchant/enchant.c U php/php-src/trunk/ext/enchant/enchant.c Modified: php/php-src/branches/PHP_5_3/ext/enchant/enchant.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/enchant/enchant.c 2010-05-02 05:00:45 UTC (rev 298869) +++ php/php-src/branches/PHP_5_3/ext/enchant/enchant.c 2010-05-02 05:01:51 UTC (rev 298870) @@ -737,7 +737,7 @@ 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; Modified: php/php-src/trunk/ext/enchant/enchant.c =================================================================== --- php/php-src/trunk/ext/enchant/enchant.c 2010-05-02 05:00:45 UTC (rev 298869) +++ php/php-src/trunk/ext/enchant/enchant.c 2010-05-02 05:01:51 UTC (rev 298870) @@ -737,7 +737,7 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php