mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 12:36:30 +00:00
Fix CID 1229239
This commit is contained in:
parent
85277d7f0c
commit
fef35eb402
@ -634,6 +634,10 @@ R_API int r_fs_prompt (RFS *fs, const char *root) {
|
||||
if (!s) goto beach;
|
||||
strcpy (s, path);
|
||||
}
|
||||
if (!s) {
|
||||
s = malloc (strlen (input)+32);
|
||||
if (!s) goto beach;
|
||||
}
|
||||
strcat (s, "/");
|
||||
strcat (s, input);
|
||||
file = r_fs_open (fs, s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user