]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxmark3.c
align clock grid with demods on graph (#276)
[proxmark3-svn] / client / proxmark3.c
index ba8c7205287d877e406fd97197258bb35461cde7..98f7880e3bc6d35116618f5085c36466ae31a9c9 100644 (file)
@@ -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';
                }
        }
 }
Impressum, Datenschutz