]> jfr.im git - irc/ircd-hybrid/libopm.git/commitdiff
Added logic to libopm_proxy_custom that finished parsing if the target string is...
authorstrtok <redacted>
Wed, 16 Oct 2002 01:19:15 +0000 (01:19 +0000)
committerstrtok <redacted>
Wed, 16 Oct 2002 01:19:15 +0000 (01:19 +0000)
characters

src/proxy.c

index 06798080161ffcc62c09661a5ab9c106d3fcdf14..46b03a9108c6b2c7169b6542038d28cfdd4f52c5 100644 (file)
@@ -64,7 +64,7 @@ int libopm_proxy_custom(OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn
    sblen = fmpos = 0;
    SENDBUFF[0] = '\0';
 
-   while((c = protocol->format[fmpos++]) != '\0')
+   while((c = protocol->format[fmpos++]) != '\0' && sblen < 512)
    {
       if(c == '%')
       {