From bb0ce713f32bb77ae72a8679c70218ae0c9c9ab4 Mon Sep 17 00:00:00 2001 From: Albert Zeyer Date: Sat, 21 May 2011 11:33:12 +0200 Subject: [PATCH] small fix as noted by xseregax --- shairport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shairport.c b/shairport.c index 38bcbd8c..6a58b4b4 100644 --- a/shairport.c +++ b/shairport.c @@ -53,7 +53,8 @@ int kCurrentLogLevel = LOG_INFO; int main(int argc, char **argv) { char tHWID[HWID_SIZE] = {0,51,52,53,54,55}; - char tHWID_Hex[HWID_SIZE * 2]; + char tHWID_Hex[HWID_SIZE * 2 + 1]; + memset(tHWID_Hex, 0, sizeof(tHWID_Hex)); char tServerName[56] = "ShairPort"; char tPassword[56] = "";