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

Support for longer than 12 char filenames with the Ctrl-A" sequence.

parent dd97c321
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -68,11 +68,11 @@ char sbbs_t::putmsg(const char *str, long mode)
if(str[l+1]=='"' && !(sys_status&SS_NEST_PF)) { /* Quote a file */
l+=2;
i=0;
while(i<12 && isprint(str[l]) && str[l]!='\\' && str[l]!='/')
while(i<sizeof(tmp2)-1 && isprint(str[l]) && str[l]!='\\' && str[l]!='/')
tmp2[i++]=str[l++];
tmp2[i]=0;
sys_status|=SS_NEST_PF; /* keep it only one message deep! */
sprintf(tmp3,"%s%s",cfg.text_dir,tmp2);
SAFEPRINTF2(tmp3,"%s%s",cfg.text_dir,tmp2);
printfile(tmp3,0);
sys_status&=~SS_NEST_PF;
}
......
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