| 23 | }; |
| 24 | |
| 25 | static void stdpr(struct printparam* pp, char *buf, int inbuf){ |
| 26 | if((pp->inbuf + inbuf > 1024) || !buf) { |
| 27 | socksend(pp->cp->clisock, (unsigned char *)pp->buf, pp->inbuf, conf.timeouts[STRING_S]); |
| 28 | pp->inbuf = 0; |
| 29 | if(!buf) return; |
| 30 | } |
| 31 | if(inbuf >= 1000){ |
| 32 | socksend(pp->cp->clisock, (unsigned char *)buf, inbuf, conf.timeouts[STRING_S]); |
| 33 | } |
| 34 | else { |
| 35 | memcpy(pp->buf + pp->inbuf, buf, inbuf); |
| 36 | pp->inbuf += inbuf; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | static void stdcbf(void *cb, char *buf, int inbuf){ |
| 41 | int delay = 0; |
no test coverage detected