summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-10-05 10:09:49 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-10-05 10:09:49 +0300
commitdf97eb1432f91ad13e562111bda393b3650719d0 (patch)
treedaa8a01c11ed4d0f34a5bb4cf07572376366db4a /client
parentd1bc469dca1de22bd24a4fc59a70085dcb5c32a5 (diff)
downloadmariadb-git-df97eb1432f91ad13e562111bda393b3650719d0.tar.gz
Remove HAVE_SNPRINTF
This fixes up commit 77c184df7c056da7364e606ac977cc2d3cd826ad which explicitly specifies that we use ISO/IEC 9899:1999 (C99), which includes the snprintf() function.
Diffstat (limited to 'client')
-rw-r--r--client/mysqlimport.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index c5c1554ca6a..ac0ad793c3f 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -1,6 +1,6 @@
/*
Copyright (c) 2000, 2015, Oracle and/or its affiliates.
- Copyright (c) 2011, 2017, MariaDB
+ Copyright (c) 2011, 2022, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -323,11 +323,7 @@ static int write_to_table(char *filename, MYSQL *mysql)
{
if (verbose)
fprintf(stdout, "Deleting the old data from table %s\n", tablename);
-#ifdef HAVE_SNPRINTF
snprintf(sql_statement, FN_REFLEN*16+256, "DELETE FROM %s", tablename);
-#else
- sprintf(sql_statement, "DELETE FROM %s", tablename);
-#endif
if (mysql_query(mysql, sql_statement))
{
db_error_with_table(mysql, tablename);