+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright (C) 2004 by Daniel Stenberg et al
*
* Permission to use, copy, modify, and distribute this software and its
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
*s = malloc(len+1);
if (*s == NULL)
return ARES_ENOMEM;
- q = *s;
+ q = *s;
strncpy((char *)q, (char *)encoded, len);
q[len] = '\0';
*s = q;
- *enclen = len+1;
+ *enclen = len+1;
return ARES_SUCCESS;
}
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 2000 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
#include "setup.h"
#include <stdlib.h>
#include "ares.h"
+#include "ares_private.h"
void ares_free_string(void *str)
{
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
#include <string.h>
#include "ares.h"
#include "ares_dns.h"
+#include "ares_private.h"
/* Header format, from RFC 1035:
* 1 1 1 1 1 1
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
+/* $Id: */
+
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996,1999 by Internet Software Consortium.
+/* $Id: */
+
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996,1999 by Internet Software Consortium.
#ifndef __ARES_SETUP_H
#define __ARES_SETUP_H
+/* $Id: */
+
/* Copyright (C) 2004 - 2005 by Daniel Stenberg et al
*
* Permission to use, copy, modify, and distribute this software and its
#include "setup.h"
+/* $Id: */
+
/* only do the following on windows
*/
#if (defined(WIN32) || defined(WATT32)) && !defined(MSDOS)