Merge pull request #3424 from davidbolvansky/metal_spaces_in_inc_path

metal: escape spaces in include path with backslash
pull/3430/head
Jens Steube 2 years ago committed by GitHub
commit 93e9da9716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -197,6 +197,8 @@ static int hc_mtlBuildOptionsToDict (void *hashcat_ctx, const char *build_option
{
NSString *path_key = @"INCLUDE_PATH";
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];
}

Loading…
Cancel
Save