The 'bz - strlen(msg)' is a kind of leftover due to old code using 'sizeof(msg) - strlen(msg)'. Not sure if we can use just strcat(), without size, given that the previous if/else block should ensure no problem with oversize will happen here (in that case, bz will be unneeded).