vm-file-editor: hide | in filename
This commit is contained in:
parent
47c657b123
commit
214365e272
@ -35,7 +35,7 @@ char *get_filename()
|
|||||||
}
|
}
|
||||||
for (i=0; buf[i]!=0; i++) {
|
for (i=0; buf[i]!=0; i++) {
|
||||||
// replace some characters with _ (eg mimeopen have problems with some of them)
|
// replace some characters with _ (eg mimeopen have problems with some of them)
|
||||||
if (index(" !?\"#$%^&*()[]<>;`~", buf[i]))
|
if (index(" !?\"#$%^&*()[]<>;`~|", buf[i]))
|
||||||
buf[i]='_';
|
buf[i]='_';
|
||||||
}
|
}
|
||||||
snprintf(retname, sizeof(retname), "/tmp/%s", buf);
|
snprintf(retname, sizeof(retname), "/tmp/%s", buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user