]> granicus.if.org Git - php/commitdiff
- Cleanup output functions
authorAndi Gutmans <andi@php.net>
Sat, 30 Sep 2000 16:14:54 +0000 (16:14 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 30 Sep 2000 16:14:54 +0000 (16:14 +0000)
ext/mysql/php_mysql.c

index c77cdd2a9e678a1645f3ceb29bd9fa8e416f6339..35645bf6af9f983914de615e09cdecef829c0a8f 100644 (file)
@@ -437,7 +437,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
 #else
                if (mysql_connect(mysql,host,user,passwd)==NULL) {
 #endif
-                               php_error(E_WARNING,mysql_error(mysql));
+                               php_error(E_WARNING, "%s", mysql_error(mysql));
                                free(mysql);
                                efree(hashed_details);
                                RETURN_FALSE;