Commit cf141856 authored by rswindell's avatar rswindell
Browse files

Added prep_file_desc() to do what strip_ctrl() used to.

parent ca41d702
......@@ -1629,7 +1629,7 @@ static void receive_thread(void* arg)
if(!f.desc[0]) { /* use for normal description */
strcpy(desc,ext);
strip_exascii(desc); /* strip extended ASCII chars */
strip_ctrl(desc); /* strip control chars */
prep_file_desc(desc); /* strip control chars and dupe chars */
for(i=0;desc[i];i++) /* find approprate first char */
if(isalnum(desc[i]))
break;
......
......@@ -149,7 +149,7 @@ bool sbbs_t::uploadfile(file_t *f)
if(!f->desc[0]) {
strcpy(desc,ext);
strip_exascii(desc);
strip_ctrl(desc);
prep_file_desc(desc);
for(i=0;desc[i];i++)
if(isalnum(desc[i]))
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment