• Build.sh, strlcpy.c: gcc-current conversion &c. warnings cleanup
• histrap.c, lex.c, misc.c: get average stack frame size to <= 768 bytes • check.t, sh.h: bump version
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2006, 2008
|
||||
* Copyright (c) 2006, 2008, 2009
|
||||
* Thorsten Glaser <tg@mirbsd.org>
|
||||
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
*
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/strlcpy.c,v 1.5 2009/05/16 18:57:54 tg Rel $");
|
||||
__RCSID("$MirOS: src/bin/mksh/strlcpy.c,v 1.6 2009/05/27 09:58:24 tg Rel $");
|
||||
|
||||
/*
|
||||
* Copy src to string dst of size siz. At most siz-1 characters
|
||||
@@ -48,5 +48,5 @@ strlcpy(char *dst, const char *src, size_t siz)
|
||||
}
|
||||
|
||||
/* count does not include NUL */
|
||||
return (s - src - 1);
|
||||
return ((size_t)(s - src - 1));
|
||||
}
|
||||
|
Reference in New Issue
Block a user