summaryrefslogtreecommitdiff
path: root/webauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'webauth.c')
-rw-r--r--webauth.c3
1 files changed, 2 insertions, 1 deletions
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;
}