From e8781e497a86af36db0aa595f8322f2947815fc3 Mon Sep 17 00:00:00 2001 From: horchi Date: Wed, 3 Oct 2018 16:01:10 +0200 Subject: mor compiler warnings --- webauth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webauth.c') diff --git a/webauth.c b/webauth.c index f4e5148..30f78af 100644 --- a/webauth.c +++ b/webauth.c @@ -44,7 +44,8 @@ char* string2base64(const char* message) } if (length % 3) - strncat(tmp, "===", 3 - length % 3); + sprintf(tmp+strlen(tmp), "%.*s", (int)(3 - length % 3), "==="); + // strncat(tmp, "===", 3 - length % 3); return tmp; } -- cgit v1.2.3