com php-src: Fix format specifier: ext/odbc/php_odbc.c
| From: | Christoph Michael Becker | Date: | Thu, 29 Oct 2020 12:08:16 +0000 |
| Subject: | com php-src: Fix format specifier: ext/odbc/php_odbc.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-113981@lists.php.net to get a copy of this message | ||
Commit: ee3227af48bb0db6f29117dca7d8a30bb21bde5e
Author: Christoph M. Becker <cmbecker69@gmx.de> Thu, 29 Oct 2020 12:58:45 +0100
Parents: c21e901ba735e927e345b65a35fcd6f585d0c2f3
Branches: PHP-7.3 PHP-7..4 PHP-8.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ee3227af48bb0db6f29117dca7d8a30bb21bde5e
Log:
Fix format specifier
In this function,
i is of type size_t.
Changed paths:
M ext/odbc/php_odbc.c
Diff:
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index cc0580fb834..1602e8d6f9c 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -2374,7 +2374,7 @@ PHP_FUNCTION(odbc_result_all)
PHPWRITE(buf, result->longreadlen);
} else if (rc != SQL_SUCCESS) {
php_printf("</td></tr></table>");
- php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (retcode %u)", i +
1, rc);
+ php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (retcode %u)", i
+ 1, rc);
efree(buf);
RETURN_FALSE;
} else if (result->values[i].vallen == SQL_NULL_DATA) {