]> granicus.if.org Git - apache/commitdiff
in rfc1413_query():
authorJeff Trawick <trawick@apache.org>
Fri, 2 Mar 2001 19:46:08 +0000 (19:46 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 2 Mar 2001 19:46:08 +0000 (19:46 +0000)
  use the buflen variable even on ASCII machines to get rid of a
  warning from the SGI compiler as well as to make it go a wee
  bit faster

PR: 6980

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88425 13f79535-47bb-0310-9956-ffa450edef68

server/rfc1413.c

index a7983f694bbeec055b5a1fd90ad234ec4952edc1..a32d46eb1a2593e470bcfa3b3e4a77b73122d245 100644 (file)
@@ -206,7 +206,7 @@ static apr_status_t rfc1413_query(apr_socket_t *sock, conn_rec *conn,
 
     /* send query to server. Handle short write. */
     i = 0;
-    while (i < strlen(buffer)) {
+    while (i < buflen) {
         apr_size_t j = strlen(buffer + i);
         apr_status_t status;
        status  = apr_send(sock, buffer+i, &j);