summaryrefslogtreecommitdiff
path: root/client/mysqltest.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r--client/mysqltest.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 0c1efae62d6..5896c655d22 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -1096,10 +1096,7 @@ void str_to_file(const char* fname, char* str, int size)
void reject_dump(const char* record_file, char* buf, int size)
{
char reject_file[FN_REFLEN];
- if (strlen(record_file) >= FN_REFLEN-8)
- die("too long path name for reject");
- strmov(strmov(reject_file, record_file),".reject");
- str_to_file(reject_file, buf, size);
+ str_to_file(fn_format(reject_file, record_file,"",".reject",2), buf, size);
}