Browse code

str - fixing internal strndup implemenatation to use the internal strnlen implementation

Mickey Sola authored on 2017/08/18 02:39:35
Showing 1 changed files
... ...
@@ -479,7 +479,7 @@ char *cli_strndup(const char *s, size_t n)
479 479
         return NULL;
480 480
     }
481 481
 
482
-    len = strnlen(s, n);
482
+    len = cli_strnlen(s, n);
483 483
     alloc = malloc(len+1);
484 484
 
485 485
     if(!alloc) {