]> granicus.if.org Git - curl/commitdiff
tool_msgs: remove wrong cast
authorMarcel Raad <raad@teamviewer.com>
Mon, 8 May 2017 18:23:44 +0000 (20:23 +0200)
committerMarcel Raad <raad@teamviewer.com>
Mon, 8 May 2017 18:23:44 +0000 (20:23 +0200)
Commit 481e0de00a9003b9c5220b120e3fc302d9b0932d changed the variable
type from int to size_t, so don't cast the result of strlen to int
anymore.

src/tool_msgs.c

index 1454903ad4e3348e97af5d82296e6e2958b9b202..d06708a1885712667fb8ba48a02204009aa6daed 100644 (file)
@@ -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;