summaryrefslogtreecommitdiff
path: root/content/urldb.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/urldb.c')
-rw-r--r--content/urldb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/urldb.c b/content/urldb.c
index 295be9b2b..e84a7f48c 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -1123,7 +1123,8 @@ void urldb_iterate_partial(const char *prefix,
* assume that we're looking for a path */
char *domain = host;
- snprintf(host, sizeof host, "%.*s", slash - prefix, prefix);
+ snprintf(host, sizeof host, "%.*s",
+ (int) (slash - prefix), prefix);
h = urldb_search_find(tree, host);
if (!h) {