Ticket #45239: patch-libhttpd.c.diff

File patch-libhttpd.c.diff, 392 bytes (added by jpo@…, 10 years ago)
  • libhttpd.c

    old new  
    41224122        }
    41234123    else if ( IN6_IS_ADDR_V4MAPPED( &saP->sa_in6.sin6_addr ) && strncmp( str, "::ffff:", 7 ) == 0 )
    41244124        /* Elide IPv6ish prefix for IPv4 addresses. */
    4125         (void) strcpy( str, &str[7] );
     4125        (void) memmove( str, &str[7], strlen(&str[7]) + 1 );
    41264126
    41274127    return str;
    41284128