From edb58721b8f7fd76b5dfa3bf83c683f2e266abd3 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 12 Aug 1997 20:16:25 +0000 Subject: Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary. --- src/tutorial/C-code/funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tutorial/C-code/funcs.c') diff --git a/src/tutorial/C-code/funcs.c b/src/tutorial/C-code/funcs.c index a721b2bbfdf..10e541a2249 100644 --- a/src/tutorial/C-code/funcs.c +++ b/src/tutorial/C-code/funcs.c @@ -37,7 +37,7 @@ concat16(char16 *arg1, char16 *arg2) char16 *new_c16 = (char16 *) palloc(sizeof(char16)); memset(new_c16, 0, sizeof(char16)); - (void) strncpy((char*)new_c16, (char*)arg1, 16); + strncpy((char*)new_c16, (char*)arg1, 16); return (char16 *)(strncat((char*)new_c16, (char*)arg2, 16)); } -- cgit v1.2.3