]> granicus.if.org Git - curl/commitdiff
strdup: Removed irrelevant comment
authorSteve Holme <steve_holme@hotmail.com>
Wed, 5 Nov 2014 12:53:06 +0000 (12:53 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 5 Nov 2014 12:53:06 +0000 (12:53 +0000)
...as Curl_memdup() duplicates an area of fix size memory, that may be
binary, and not a null terminated string.

lib/strdup.c

index 4b5bd4042efeeaf592714ecb7cd81a8e7ed3b87f..a997b12f2c3b0ee03076343f9506ed861dd3967a 100644 (file)
@@ -69,6 +69,5 @@ char *Curl_memdup(const char *src, size_t length)
 
   memcpy(buffer, src, length);
 
-  /* if length unknown do null termination */
   return buffer;
 }