Skip to content
Snippets Groups Projects
Commit cf141856 authored by rswindell's avatar rswindell
Browse files

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

parent ca41d702
No related branches found
No related tags found
No related merge requests found
...@@ -1629,7 +1629,7 @@ static void receive_thread(void* arg) ...@@ -1629,7 +1629,7 @@ static void receive_thread(void* arg)
if(!f.desc[0]) { /* use for normal description */ if(!f.desc[0]) { /* use for normal description */
strcpy(desc,ext); strcpy(desc,ext);
strip_exascii(desc); /* strip extended ASCII chars */ 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 */ for(i=0;desc[i];i++) /* find approprate first char */
if(isalnum(desc[i])) if(isalnum(desc[i]))
break; break;
......
...@@ -149,7 +149,7 @@ bool sbbs_t::uploadfile(file_t *f) ...@@ -149,7 +149,7 @@ bool sbbs_t::uploadfile(file_t *f)
if(!f->desc[0]) { if(!f->desc[0]) {
strcpy(desc,ext); strcpy(desc,ext);
strip_exascii(desc); strip_exascii(desc);
strip_ctrl(desc); prep_file_desc(desc);
for(i=0;desc[i];i++) for(i=0;desc[i];i++)
if(isalnum(desc[i])) if(isalnum(desc[i]))
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment