diff options
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index c1016bb0..951c7641 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -536,7 +536,8 @@ base64 (char *bin, int len) | |||
536 | int i = 0, j = 0; | 536 | int i = 0, j = 0; |
537 | 537 | ||
538 | char BASE64_END = '='; | 538 | char BASE64_END = '='; |
539 | char base64_table[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | 539 | char base64_table[64]; |
540 | strncpy (base64_table, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", 64); | ||
540 | 541 | ||
541 | while (j < len - 2) { | 542 | while (j < len - 2) { |
542 | buf[i++] = base64_table[bin[j] >> 2]; | 543 | buf[i++] = base64_table[bin[j] >> 2]; |