mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 16:31:54 +00:00
Use posix functions
This commit is contained in:
parent
6f84dc8b7d
commit
b46679d5a4
1 changed files with 2 additions and 1 deletions
|
@ -826,8 +826,9 @@ int shl__mkdir_parents(const char *prefix, const char *path, mode_t mode)
|
|||
if (!e || e == path)
|
||||
return 0;
|
||||
|
||||
p = strndupa(path, e - path);
|
||||
p = strndup(path, e - path);
|
||||
r = shl__is_dir(p);
|
||||
free(p);
|
||||
if (r > 0)
|
||||
return 0;
|
||||
if (r == 0)
|
||||
|
|
Loading…
Reference in a new issue