]> granicus.if.org Git - php/commitdiff
fix compile warning
authorAntony Dovgal <tony2001@php.net>
Tue, 16 Sep 2008 09:48:07 +0000 (09:48 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 16 Sep 2008 09:48:07 +0000 (09:48 +0000)
ext/fileinfo/fileinfo.c

index 83d1265cf84b13b17bfe134e9dc9bd73430bb8b7..1db520c41ad72e95bdae6255f1e4735d0c9578c6 100644 (file)
@@ -540,7 +540,7 @@ static void _php_finfo_get_type(INTERNAL_FUNCTION_PARAMETERS, int mode, int mime
                                        goto clean;
                                }
 
-                               ret_val = magic_stream(magic, stream);
+                               ret_val = (char *)magic_stream(magic, stream);
                                php_stream_close(stream);
                        }
                        break;