cURL / Mailing Lists / curl-library / Single Mail

curl-library

bug in if2ip.c

From: Daniel Johnson <daniel.johnson31_at_gmail.com>
Date: Sun, 12 Oct 2008 08:47:17 -0400

There's a slight bug here; it should be

Index: if2ip.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/if2ip.c,v
retrieving revision 1.55
diff -u -r1.55 if2ip.c
--- if2ip.c 9 Oct 2008 19:23:50 -0000 1.55
+++ if2ip.c 12 Oct 2008 12:41:52 -0000
@@ -85,7 +85,7 @@
          } else
            addr = &((struct sockaddr_in *)iface->ifa_addr)->sin_addr;
          ip = (char *) Curl_inet_ntop(af, addr, buf, buf_size);
- Curl_strlcat(buf, scope, buf_size);
+ strlcat(buf, scope, buf_size);
          break;
        }
      }

Curl_strlcat doesn't exist if there is a strlcat and strlcat is
#defined to Curl_strlcat if not.

Daniel
Received on 2008-10-12