aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-05-08 20:23:44 +0200
committerMarcel Raad <raad@teamviewer.com>2017-05-08 20:23:44 +0200
commitdc1a1b50557ed0cad427e0b5808a95459443ca41 (patch)
tree85bbd37d1de40cc8a95baaba29e9f58143f101ff
parente076fdaf5bb7862670cf4e0e5d6ba5861dd3b6e9 (diff)
tool_msgs: remove wrong cast
Commit 481e0de00a9003b9c5220b120e3fc302d9b0932d changed the variable type from int to size_t, so don't cast the result of strlen to int anymore.
-rw-r--r--src/tool_msgs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_msgs.c b/src/tool_msgs.c
index 1454903ad..d06708a18 100644
--- a/src/tool_msgs.c
+++ b/src/tool_msgs.c
@@ -38,7 +38,7 @@ static void voutf(struct GlobalConfig *config,
const char *fmt,
va_list ap)
{
- size_t width = (79 - (int)strlen(prefix));
+ size_t width = (79 - strlen(prefix));
if(!config->mute) {
size_t len;
char *ptr;