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

exascii_str now ignores Ctrl-A codes with high-bit set.

Fixed bputs() for strings that end in a Ctrl-A char.
parent 253025a0
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,9 @@ char* DLLCALL ascii_str(uchar* str)
for(i=0;str[i];i++)
if(str[i]&0x80)
str[i]=sbtbl[str[i]^0x80]; /* seven bit table */
else if(str[i]==CTRL_A /* ctrl-a */
&& str[i+1]!=0) /* valid */
i++; /* skip the attribute code */
return((char*)str);
}
......@@ -74,7 +77,8 @@ int sbbs_t::bputs(char *str)
ulong l=0;
while(str[l]) {
if(str[l]==CTRL_A) { /* ctrl-a */
if(str[l]==CTRL_A /* ctrl-a */
&& str[l+1]!=0) { /* valid */
ctrl_a(str[++l]); /* skip the ctrl-a */
l++; /* skip the attribute code */
continue; }
......
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