summaryrefslogtreecommitdiff
path: root/src/templating
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-10 01:01:37 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-10 01:01:37 +0200
commitc014acf3c4ccf03109b0141d6b68d4f464464e19 (patch)
tree936413646c36985cffeb0da81f4f71d27422c48d /src/templating
parent3ebd0a70b2bba2e64615c0973477a610e117c97a (diff)
downloadexchange-c014acf3c4ccf03109b0141d6b68d4f464464e19.tar.gz
exchange-c014acf3c4ccf03109b0141d6b68d4f464464e19.tar.bz2
exchange-c014acf3c4ccf03109b0141d6b68d4f464464e19.zip
always use GNUNET_memcpy
Diffstat (limited to 'src/templating')
-rw-r--r--src/templating/mustach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/templating/mustach.c b/src/templating/mustach.c
index caa80dcc9..9797c533d 100644
--- a/src/templating/mustach.c
+++ b/src/templating/mustach.c
@@ -297,7 +297,7 @@ static int process(const char *template, struct iwrap *iwrap, FILE *file, const
#endif
if (len > MUSTACH_MAX_LENGTH)
return MUSTACH_ERROR_TAG_TOO_LONG;
- memcpy(name, beg, len);
+ GNUNET_memcpy(name, beg, len);
name[len] = 0;
break;
}
@@ -317,7 +317,7 @@ static int process(const char *template, struct iwrap *iwrap, FILE *file, const
return MUSTACH_ERROR_BAD_SEPARATORS;
oplen = l;
tmp = alloca(oplen + 1);
- memcpy(tmp, beg, oplen);
+ GNUNET_memcpy(tmp, beg, oplen);
tmp[oplen] = 0;
opstr = tmp;
while (l < len && isspace(beg[l])) l++;
@@ -325,7 +325,7 @@ static int process(const char *template, struct iwrap *iwrap, FILE *file, const
return MUSTACH_ERROR_BAD_SEPARATORS;
cllen = len - l;
tmp = alloca(cllen + 1);
- memcpy(tmp, beg + l, cllen);
+ GNUNET_memcpy(tmp, beg + l, cllen);
tmp[cllen] = 0;
clstr = tmp;
break;