]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxmark3.c
Merge branch 'graphwork2' into graphwork
[proxmark3-svn] / client / proxmark3.c
index 2ed127a4f934d2eb736c567af1de07d3d1e77af5..98f7880e3bc6d35116618f5085c36466ae31a9c9 100644 (file)
@@ -199,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;
 }
@@ -219,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