From 820fcf318e11426bdb72345948c56738b5e12da4 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Wed, 1 May 2013 02:51:46 -0400 Subject: [PATCH] Fix two valgrind finds. --- clients/memcp.cc | 2 +- clients/memdump.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/memcp.cc b/clients/memcp.cc index 7ae5a1f3..f3c31141 100644 --- a/clients/memcp.cc +++ b/clients/memcp.cc @@ -131,7 +131,7 @@ int main(int argc, char *argv[]) } else if (argc >= 1 and argv[--argc]) { - opt_servers= strdup(argv[--argc]); + opt_servers= strdup(argv[argc]); } if (opt_servers == NULL) diff --git a/clients/memdump.cc b/clients/memdump.cc index 5c6fef29..48c35d3e 100644 --- a/clients/memdump.cc +++ b/clients/memdump.cc @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) } else if (argc >= 1 and argv[--argc]) { - opt_servers= strdup(argv[--argc]); + opt_servers= strdup(argv[argc]); } if (opt_servers == NULL) -- 2.30.2