tlsauthentication.c: inelegant mute of compiler warning

This commit is contained in:
Evgeny Grin (Karlson2k)
2021-08-25 19:55:06 +03:00
parent 5feee053a2
commit 40501c2f5d
+4 -2
View File
@@ -53,8 +53,10 @@ string_to_base64 (const char *message)
strncat (tmp, &lookup[l & 0x3F], 1);
}
if (length % 3)
strncat (tmp, "==", 3 - length % 3);
if (2 == length % 3)
strncat (tmp, "=", 1);
else if (1 == length % 3)
strncat (tmp, "==", 2);
return tmp;
}