|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-05 21:31 UTC] alan at akbkhome dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 19:00:02 2025 UTC |
Description: ------------ The build fails with -Werror=format-security Reproduce code: --------------- /home/oden/RPM/BUILD/svn-0.5.0/svn.c: In function 'php_svn_handle_error': /home/oden/RPM/BUILD/svn-0.5.0/svn.c:273: error: format not a string literal and no format arguments Expected result: ---------------- It should build. Actual result: -------------- Proposed fix: --- svn.c 2008-10-09 19:15:37.000000000 +0200 +++ svn.c.oden 2009-01-04 13:46:33.000000000 +0100 @@ -270,7 +270,7 @@ static void php_svn_handle_error(svn_err smart_str_appendl(&s, "\n", 1); smart_str_0(&s); - php_error_docref(NULL TSRMLS_CC, E_WARNING, s.c); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", s.c); smart_str_free(&s); }