summaryrefslogtreecommitdiff
path: root/src/tool_urlglob.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-06-30 12:47:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-30 14:05:56 +0200
commit8feeafc61ab6c5770ffcc594be5bc38e1d80bdfa (patch)
tree2bf8bb23ed4ab532d24761078df3e079a4713644 /src/tool_urlglob.c
parent97fa671a73b0acdbd1efd71825152c00a25cda3e (diff)
downloadcurl-8feeafc61ab6c5770ffcc594be5bc38e1d80bdfa.tar.gz
glob: pass an 'int' as len when using printf's %*s
Detected by Coverity CID 1486629. Closes #7324
Diffstat (limited to 'src/tool_urlglob.c')
-rw-r--r--src/tool_urlglob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index cfce1732a..df882b28a 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -472,7 +472,7 @@ CURLcode glob_url(struct URLGlob **glob, char *url, unsigned long *urlnum,
if(glob_expand->pos) {
msnprintf(text, sizeof(text), "%s in URL position %zu:\n%s\n%*s^",
glob_expand->error,
- glob_expand->pos, url, glob_expand->pos - 1, " ");
+ glob_expand->pos, url, (int)glob_expand->pos - 1, " ");
t = text;
}
else