From f2fb90239ce424b3e26f45f7407c2f6a6d6006a5 Mon Sep 17 00:00:00 2001 From: Danil Yarantsev Date: Thu, 30 Jul 2020 11:37:32 +0300 Subject: [PATCH] Fix invalid return type in getData --- ptrace.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptrace.nim b/ptrace.nim index 70e3f60..d8281bf 100644 --- a/ptrace.nim +++ b/ptrace.nim @@ -226,7 +226,7 @@ proc getData*(p: Pid, a: clong, pt: pointer, length: int) {.inline.} = var buf = cast[cstring](pt) getData(p, a, buf, length) -proc getString*(p: Pid, a: clong, length: int): cstring = +proc getString*(p: Pid, a: clong, length: int): string = result = newString(length) getData(p, a, result, length)