From d0db5ed413a2e956b2774f42f03ca4cc0946f45d Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 2 May 2007 03:06:52 +0000 Subject: Fix warning: field precision should have type 'int', but argument 4 has type 'long int'. svn path=/trunk/netsurf/; revision=3262 --- content/urldb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content') 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) { -- cgit v1.2.3