From 64137a4ab5250a907ef895f5416fa58199b278a0 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 27 Dec 2019 13:52:51 +0200 Subject: [PATCH] utils: fix typo in strndup fallback Fixup 93a1305 - we will have CI for this soon. Signed-off-by: Ran Benita --- src/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.h b/src/utils.h index acd191e..920db4c 100644 --- a/src/utils.h +++ b/src/utils.h @@ -119,7 +119,7 @@ strndup(const char *s, size_t n) char *p = malloc(len + 1); if (!p) return NULL; - memcpy(p, str, len); + memcpy(p, s, len); p[len] = '\0'; return p; } -- 2.7.4