]> granicus.if.org Git - php/commitdiff
fix memory corruption (HEAD only)
authorAntony Dovgal <tony2001@php.net>
Tue, 10 Jan 2006 10:51:39 +0000 (10:51 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 10 Jan 2006 10:51:39 +0000 (10:51 +0000)
ext/standard/levenshtein.c

index e1e1906fa56f64bfd76d600deec45bbee0d208d0..94e6af05d6c10fe376f2923af97481861defe9ae 100644 (file)
@@ -106,7 +106,7 @@ PHP_FUNCTION(levenshtein)
        void *str1, *str2;
        int32_t str1_len, str2_len;
        zend_uchar str1_type, str2_type;
-       int cost_ins, cost_rep, cost_del;
+       long cost_ins, cost_rep, cost_del;
        char *callback_name;
        int distance = -1;