]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/BsdSocketLib/base64.c
Define the global variables as weak to enable the proper linking with applications...
[mirror_edk2.git] / StdLib / BsdSocketLib / base64.c
index d8c588d19dd2964b16aa128baa53b13dae065b9e..363ee18591cb5e1ab4d7741874ea838c4248d4c3 100644 (file)
@@ -171,6 +171,7 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) {
   u_char output[4];\r
   size_t i;\r
 \r
+  input[0] = input[1] = input[2] = '\0';\r
   while (2 < srclength) {\r
     input[0] = *src++;\r
     input[1] = *src++;\r