git: 39a30a8097cf - main - better printf(3) format usage

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Thu, 03 Feb 2022 16:58:45 UTC
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/src/commit/?id=39a30a8097cfc78291376991ab5373f279db662d

commit 39a30a8097cfc78291376991ab5373f279db662d
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2022-02-03 16:56:32 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2022-02-03 16:57:25 +0000

    better printf(3) format usage
    
    Reported by: jhb
---
 usr.bin/locate/locate/fastfind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/locate/locate/fastfind.c b/usr.bin/locate/locate/fastfind.c
index 0dbec4ea15d3..2300d17cff00 100644
--- a/usr.bin/locate/locate/fastfind.c
+++ b/usr.bin/locate/locate/fastfind.c
@@ -296,7 +296,7 @@ fastfind
 			}
 
 			if (p - path >= LOCATE_PATH_MAX) 
-				errx(1, "corrupted database: %s %zu", database, (size_t)(p - path));
+				errx(1, "corrupted database: %s %td", database, p - path);
 
 		}