From 40069685c3d708cf39d8b378bbe5f98959176d8b Mon Sep 17 00:00:00 2001 From: agc Date: Tue, 6 Jan 2004 11:29:30 +0000 Subject: [PATCH] Make this compile, and, as a side-effect, LP64 clean. --- lib/libc/locale/rune.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/locale/rune.c b/lib/libc/locale/rune.c index 98387eeeef2d..78948b85bd17 100644 --- a/lib/libc/locale/rune.c +++ b/lib/libc/locale/rune.c @@ -1,4 +1,4 @@ -/* $NetBSD: rune.c,v 1.24 2004/01/06 08:08:44 itojun Exp $ */ +/* $NetBSD: rune.c,v 1.25 2004/01/06 11:29:30 agc Exp $ */ /*- * Copyright (c)1999 Citrus Project, @@ -63,7 +63,7 @@ #if 0 static char sccsid[] = "@(#)rune.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: rune.c,v 1.24 2004/01/06 08:08:44 itojun Exp $"); +__RCSID("$NetBSD: rune.c,v 1.25 2004/01/06 11:29:30 agc Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -188,7 +188,7 @@ find_codeset(_RuneLocale *rl) *top = *tail; *tail = '\0'; rl->rl_codeset = strdup(codeset); - strlcpy(top + 1, tail + 1, ep - (top + 1)); + strlcpy(top + 1, tail + 1, (unsigned)(ep - (top + 1))); } else { *top = '\0'; rl->rl_codeset = strdup(codeset);