X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Foptions.c;h=92557ba3bdc27cc09dac23cd7239b6f61b46f909;hp=23491d3f5b2c075cd932ffff2fafca990e06260e;hb=84df52f9ea78e2d71bde648a16b69d80404c6421;hpb=3813fda44adcea486b7308423a699f63d79273ee diff --git a/src/helper/options.c b/src/helper/options.c index 23491d3f5b..92557ba3bd 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -70,7 +70,7 @@ int add_default_dirs(void) /* Either this code will *always* work or it will SEGFAULT giving * excellent information on the culprit. */ - *strrchr(strExePath, '\\')=0; + *strrchr(strExePath, '\\') = 0; strcat(strExePath, "\\.."); add_script_search_dir(strExePath); } @@ -88,9 +88,9 @@ int add_default_dirs(void) char strExePath [MAX_PATH]; char *p; GetModuleFileName (NULL, strExePath, MAX_PATH); - *strrchr(strExePath, '\\')=0; + *strrchr(strExePath, '\\') = 0; strcat(strExePath, "/../lib/"PACKAGE); - for (p=strExePath; *p; p++) { + for (p = strExePath; *p; p++) { if (*p == '\\') *p = '/'; }