aboutsummaryrefslogtreecommitdiff
path: root/src/base/string/raw/ncopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/string/raw/ncopy.c')
-rw-r--r--src/base/string/raw/ncopy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base/string/raw/ncopy.c b/src/base/string/raw/ncopy.c
index cf18a4b..df0e9da 100644
--- a/src/base/string/raw/ncopy.c
+++ b/src/base/string/raw/ncopy.c
@@ -1,5 +1,7 @@
+#include <u.h>
+
char *
-str·ncopy(char *dst, int n, char *src)
+str·ncopy(char *dst, intptr n, char *src)
{
while(*src && n-- > 0)
*dst++ = *src++;