mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-28 23:49:23 +00:00
- fixed for new declaration of add_path_component()
This commit is contained in:
parent
bf765a5be8
commit
4b4f5e5ad4
@ -75,14 +75,14 @@ void extfs_exit(void)
|
|||||||
* Add component to path name
|
* Add component to path name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void add_path_component(char *path, const char *component, int max_len)
|
void add_path_component(char *path, const char *component)
|
||||||
{
|
{
|
||||||
int l = strlen(path);
|
int l = strlen(path);
|
||||||
if (l < max_len-1 && path[l-1] != '/') {
|
if (l < MAX_PATH_LENGTH-1 && path[l-1] != '/') {
|
||||||
path[l] = '/';
|
path[l] = '/';
|
||||||
path[l+1] = 0;
|
path[l+1] = 0;
|
||||||
}
|
}
|
||||||
strncat(path, component, max_len-1);
|
strncat(path, component, MAX_PATH_LENGTH-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user