From 2bc5188dae9528aaaf3ee418b6981d94f08cc086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 28 Jun 2017 11:36:17 +0300 Subject: [PATCH] MXS-1304: Don't null-terminate buffers in gw_str_xor The gw_str_xor function is used only for doing XOR operations on binary buffers. --- server/core/utils.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/core/utils.c b/server/core/utils.c index 57fe2d9af..b119b897f 100644 --- a/server/core/utils.c +++ b/server/core/utils.c @@ -223,8 +223,6 @@ void gw_str_xor(uint8_t *output, const uint8_t *input1, const uint8_t *input2, u { *output++ = *input1++ ^ *input2++; } - - *output = '\0'; } /**********************************************************