Ignore:
Timestamp:
Aug 2, 2009, 10:21:46 PM (12 years ago)
Author:
livings124
Message:

update miniupnpc to miniupnpc-20090729

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/miniupnp/minissdpc.c

    r7837 r8862  
    1 /* $Id: minissdpc.c,v 1.7 2008/12/18 17:45:48 nanard Exp $ */
     1/* $Id: minissdpc.c,v 1.9 2009/07/20 09:18:05 nanard Exp $ */
    22/* Project : miniupnp
    33 * Author : Thomas BERNARD
    4  * copyright (c) 2005-2008 Thomas Bernard
     4 * copyright (c) 2005-2009 Thomas Bernard
    55 * This software is subjet to the conditions detailed in the
    66 * provided LICENCE file. */
     
    1313#ifdef WIN32
    1414#include <winsock2.h>
    15 #include <Ws2tcpip.h>
     15#include <ws2tcpip.h>
    1616#include <io.h>
     17/* Hack */
     18#define UNIX_PATH_LEN   108
     19struct sockaddr_un {
     20  uint16_t sun_family;
     21  char     sun_path[UNIX_PATH_LEN];
     22};
    1723#else
    1824#include <sys/socket.h>
     
    5864        p = buffer + 1;
    5965        l = stsize;     CODELENGTH(l, p);
     66        if(p + stsize > buffer + sizeof(buffer))
     67        {
     68                /* devtype is too long ! */
     69                close(s);
     70                return NULL;
     71        }
    6072        memcpy(p, devtype, stsize);
    6173        p += stsize;
Note: See TracChangeset for help on using the changeset viewer.