X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxmisc.c;h=a7a2fcb93576bf7248a409757458a41fdbe0b827;hb=2eb952ca31aa13d1f6f429305fbb6f43a9a28c56;hp=2e13b3bb93e11e3d7c09c015f309a0e24d75caa0;hpb=e88b8d21f2f7a73cd9e2f21bcb408b2abebd0667;p=PuTTY.git diff --git a/unix/uxmisc.c b/unix/uxmisc.c index 2e13b3bb..a7a2fcb9 100644 --- a/unix/uxmisc.c +++ b/unix/uxmisc.c @@ -95,6 +95,13 @@ Filename *filename_deserialise(void *vdata, int maxsize, int *used) return filename_from_str(data); } +char filename_char_sanitise(char c) +{ + if (c == '/') + return '.'; + return c; +} + #ifdef DEBUG static FILE *debug_fp = NULL;