Fix CID 1229239

This commit is contained in:
pancake 2014-08-01 01:14:40 +02:00
parent 85277d7f0c
commit fef35eb402

View File

@ -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);