From df1501ffa379118cbc7724d02f3d981f0aea1fdb Mon Sep 17 00:00:00 2001 From: "kevin.larke" Date: Fri, 17 Apr 2020 13:40:41 -0400 Subject: [PATCH] cwEuCon.cpp : Change printf() fmt. --- cwEuCon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cwEuCon.cpp b/cwEuCon.cpp index 8b5553b..e00fbbd 100644 --- a/cwEuCon.cpp +++ b/cwEuCon.cpp @@ -625,7 +625,8 @@ namespace cw const char* name = (const char*)(u+6); const char* label = "MC Mix - "; - printf("%.*s|%i\n", name[0], name+1, strlen(label) ); + unsigned sn = strlen(label); + printf("%.*s|%i\n", name[0], name+1, sn ); // if this a 'MC Mix' DNS-SD SRV reply if( strncmp(label, name+1, strlen(label)) == 0 )