mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-08 23:01:14 +00:00
metal: escape spaces in include path with backslash
This commit is contained in:
parent
bf0ffa66d7
commit
480c23c05d
@ -197,6 +197,8 @@ static int hc_mtlBuildOptionsToDict (void *hashcat_ctx, const char *build_option
|
|||||||
{
|
{
|
||||||
NSString *path_key = @"INCLUDE_PATH";
|
NSString *path_key = @"INCLUDE_PATH";
|
||||||
NSString *path_value = [NSString stringWithCString: include_path encoding: NSUTF8StringEncoding];
|
NSString *path_value = [NSString stringWithCString: include_path encoding: NSUTF8StringEncoding];
|
||||||
|
// Include path may contain spaces, escape them with a backslash
|
||||||
|
path_value = [path_value stringByReplacingOccurrencesOfString:@" " withString:@"\\ "];
|
||||||
|
|
||||||
[build_options_dict setObject:path_value forKey:path_key];
|
[build_options_dict setObject:path_value forKey:path_key];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user