summaryrefslogtreecommitdiff
path: root/content/urldb.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2007-05-02 03:06:52 +0000
committerJames Bursa <james@netsurf-browser.org>2007-05-02 03:06:52 +0000
commitd0db5ed413a2e956b2774f42f03ca4cc0946f45d (patch)
tree41ec7e97308564cbc6557714411b9f8c9c95da07 /content/urldb.c
parent21407fe8ab0b9e95a2a515c19fbd29f4efdf86c6 (diff)
downloadnetsurf-d0db5ed413a2e956b2774f42f03ca4cc0946f45d.tar.gz
netsurf-d0db5ed413a2e956b2774f42f03ca4cc0946f45d.tar.bz2
Fix warning: field precision should have type 'int', but argument 4 has type 'long int'.
svn path=/trunk/netsurf/; revision=3262
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) {