From b99aec2e8e8626ca3068207d3bfa0f501e5b3cc3 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 21 Oct 2012 22:59:29 +0200 Subject: [PATCH] vnote: replace st00pid uses of strcpy --- libcitadel/lib/vnote.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcitadel/lib/vnote.c b/libcitadel/lib/vnote.c index c8f45b98c..feeee9289 100644 --- a/libcitadel/lib/vnote.c +++ b/libcitadel/lib/vnote.c @@ -212,7 +212,7 @@ void vnote_serialize_output_field(char *append_to, char *field, char *label) { mydup = malloc((strlen(field) * 3) + 1); if (!mydup) return; - strcpy(mydup, ""); + *mydup = '\0'; while (ptr[pos] != 0) { ch = (unsigned char)(ptr[pos++]); @@ -255,7 +255,7 @@ char *vnote_serialize(struct vnote *v) { s = malloc(bytes_needed); if (!s) return NULL; - strcpy(s, ""); + *s = '\0'; vnote_serialize_output_field(s, "vnote", "BEGIN"); vnote_serialize_output_field(s, "//Citadel//vNote handler library//EN", "PRODID"); vnote_serialize_output_field(s, "1.1", "VERSION"); -- 2.30.2