Avatar History, ConvertToFilename:
void ConvertToFilename(char *str, size_t size) {
for(size_t i = 0; i < size && str[i] != '\0'; i++) {
switch(str[i]) {
case '/':
case '\\':
case ':':
case '*':
case '?':
case '"':
case '<':
case '>':
case '|':
case '.':
str[i] = '_';
}
}
}
The case '.' is unneeded, it just messes up MSN-emails
Original issue reported on code.google.com by wishmaster51 on 24 Jul 2011 at 1:33
Original issue reported on code.google.com by
wishmaster51
on 24 Jul 2011 at 1:33