aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/C-code/funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tutorial/C-code/funcs.c')
-rw-r--r--src/tutorial/C-code/funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tutorial/C-code/funcs.c b/src/tutorial/C-code/funcs.c
index 0033e124294..5a70262f070 100644
--- a/src/tutorial/C-code/funcs.c
+++ b/src/tutorial/C-code/funcs.c
@@ -38,7 +38,7 @@ concat16(char16 *arg1, char16 *arg2)
{
char16 *new_c16 = (char16 *) palloc(sizeof(char16));
- memset(new_c16, 0, sizeof(char16));
+ MemSet(new_c16, 0, sizeof(char16));
strncpy((char *) new_c16, (char *) arg1, 16);
return (char16 *) (strncat((char *) new_c16, (char *) arg2, 16));
}
@@ -52,7 +52,7 @@ copytext(text *t)
*/
text *new_t = (text *) palloc(VARSIZE(t));
- memset(new_t, 0, VARSIZE(t));
+ MemSet(new_t, 0, VARSIZE(t));
VARSIZE(new_t) = VARSIZE(t);