// 1.) allow only readable ASCII (0x0a, 0x0d, 0x20...0x7e), else drop txvec_src = txbuf1; txvec_dst = txbuf2; txlen1 = txalloc; p = 0; for(l=0; l= ' ') && (*txvec_src <= '~')) || (*txvec_src == 0x0a) || (*txvec_src == 0x0d)) { *txvec_dst++ = *txvec_src++;// copy the same char p++; } else txvec_src++;// drop anything else } txlen = p - 1; // dst is 2 // 2.) unify windows return txvec_src = txbuf2; txvec_dst = txbuf1; p = 0; for(l=0; l