|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-01-04 12:12 UTC] oden dot eriksson at envitory dot se
Description: ------------ The build fails with -Werror=format-security Will attach a patch that fixes this. Expected result: ---------------- It should build. Actual result: -------------- /home/oden/RPM/BUILD/php-gtk-2.0.1/main/php_gtk_util.c: In function 'parse_arg': /home/oden/RPM/BUILD/php-gtk-2.0.1/main/php_gtk_util.c:422: error: format not a string literal and no format arguments /home/oden/RPM/BUILD/php-gtk-2.0.1/main/php_gtk_util.c: In function 'parse_va_args': /home/oden/RPM/BUILD/php-gtk-2.0.1/main/php_gtk_util.c:482: error: format not a string literal and no format arguments PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 00:00:01 2025 UTC |
--- main/php_gtk_util.c 2008-03-12 16:46:45.000000000 +0100 +++ main/php_gtk_util.c.oden 2009-01-04 13:03:11.000000000 +0100 @@ -419,7 +419,7 @@ static int parse_arg(int arg_num, zval * get_active_class_name(NULL TSRMLS_CC), get_active_function_name(TSRMLS_C), arg_num, expected_type, php_gtk_zval_type_name(*arg)); - php_error(E_WARNING, buf); + php_error(E_WARNING, "%s", buf); } return 0; } @@ -479,7 +479,7 @@ static int parse_va_args(int argc, zval argc < min_argc ? min_argc : max_argc, (argc < min_argc ? min_argc : max_argc) == 1 ? "" : "s", argc); - php_error(E_WARNING, buf); + php_error(E_WARNING, "%s", buf); } return 0; }