mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
use strcat instead of strncat, we are adding same as we removed
This commit is contained in:
parent
69a0890ad1
commit
f2185b3933
1 changed files with 2 additions and 3 deletions
|
@ -88,7 +88,6 @@ int searchHomeFilePath(char **foundpath, const char *subdir, const char *filenam
|
||||||
|
|
||||||
strcpy(path, user_path);
|
strcpy(path, user_path);
|
||||||
strcat(path, PM3_USER_DIRECTORY);
|
strcat(path, PM3_USER_DIRECTORY);
|
||||||
|
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@ -97,7 +96,7 @@ int searchHomeFilePath(char **foundpath, const char *subdir, const char *filenam
|
||||||
if (str_endswith(path, PATHSEP)) {
|
if (str_endswith(path, PATHSEP)) {
|
||||||
memset(path + (strlen(path) - strlen(PATHSEP)), 0x00, strlen(PATHSEP));
|
memset(path + (strlen(path) - strlen(PATHSEP)), 0x00, strlen(PATHSEP));
|
||||||
result = _stat(path, &st);
|
result = _stat(path, &st);
|
||||||
strncat(path, PATHSEP, strlen(PATHSEP));
|
strcat(path, PATHSEP);
|
||||||
} else {
|
} else {
|
||||||
result = _stat(path, &st);
|
result = _stat(path, &st);
|
||||||
}
|
}
|
||||||
|
@ -131,7 +130,7 @@ int searchHomeFilePath(char **foundpath, const char *subdir, const char *filenam
|
||||||
if (str_endswith(path, PATHSEP)) {
|
if (str_endswith(path, PATHSEP)) {
|
||||||
memset(path + (strlen(path) - strlen(PATHSEP)), 0x00, strlen(PATHSEP));
|
memset(path + (strlen(path) - strlen(PATHSEP)), 0x00, strlen(PATHSEP));
|
||||||
result = _stat(path, &st);
|
result = _stat(path, &st);
|
||||||
strncat(path, PATHSEP, strlen(PATHSEP));
|
strcat(path, PATHSEP);
|
||||||
} else {
|
} else {
|
||||||
result = _stat(path, &st);
|
result = _stat(path, &st);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue