X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/e88c04f924abb31589f9f58691fcf94238fead63..9fe4507c03c26715b532b4ceb1f46e8198ecd4c9:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index ba8c7205..98f7880e 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -22,7 +22,6 @@ #include "cmdmain.h" #include "uart.h" #include "ui.h" -#include "sleep.h" #include "cmdparser.h" #include "cmdhw.h" #include "whereami.h" @@ -200,12 +199,12 @@ static void dumpAllHelp(int markdown) static char *my_executable_path = NULL; static char *my_executable_directory = NULL; -const char const *get_my_executable_path(void) +const char *get_my_executable_path(void) { return my_executable_path; } -const char const *get_my_executable_directory(void) +const char *get_my_executable_directory(void) { return my_executable_directory; } @@ -220,6 +219,7 @@ static void set_my_executable_path(void) my_executable_path[path_length] = '\0'; my_executable_directory = (char *)malloc(dirname_length + 2); strncpy(my_executable_directory, my_executable_path, dirname_length+1); + my_executable_directory[dirname_length+1] = '\0'; } } }