]> granicus.if.org Git - php/commitdiff
Fix format specifier
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 29 Oct 2020 11:58:45 +0000 (12:58 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 29 Oct 2020 12:08:16 +0000 (13:08 +0100)
In this function, `i` is of type `size_t`.

ext/odbc/php_odbc.c

index cc0580fb83480e6f82705f5d6c4bd47b239f17f8..1602e8d6f9cf62524a4a8651bda6a354667d699a 100644 (file)
@@ -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) {