From a1f3adfedc7d1024af45dafcb975ffd64a430f40 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Wed, 26 Aug 2015 11:32:42 +0200 Subject: [PATCH] Fix for leading / Fix for leading / --- server/modules/routing/binlog/maxbinlogcheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/binlog/maxbinlogcheck.c b/server/modules/routing/binlog/maxbinlogcheck.c index 3fe72255a..aa34bb9f1 100644 --- a/server/modules/routing/binlog/maxbinlogcheck.c +++ b/server/modules/routing/binlog/maxbinlogcheck.c @@ -182,7 +182,7 @@ int main(int argc, char **argv) { if (ptr) strncpy(inst->binlog_name, ptr+1, BINLOG_FNAMELEN); else - strncpy(inst->binlog_name, ptr, BINLOG_FNAMELEN); + strncpy(inst->binlog_name, path, BINLOG_FNAMELEN); LOGIF(LM, (skygw_log_write_flush(LOGFILE_MESSAGE, "maxbinlogcheck %s", binlog_check_version)));