mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
eb8c7516ac
Pass maintainership to submitter. PR: ports/97117 Submitted by: Rainer Alves <rainer.alves@gmail.com> Approved by: lawrance (mentor)
16 lines
390 B
C
16 lines
390 B
C
--- main.c.orig Wed May 10 17:27:08 2006
|
|
+++ main.c Wed May 10 17:30:21 2006
|
|
@@ -14,6 +14,12 @@
|
|
|
|
#include "rawrec.h"
|
|
|
|
+size_t strnlen (const char *string, size_t maxlen)
|
|
+{
|
|
+ const char *end = memchr (string, '\0', maxlen);
|
|
+ return end ? (size_t) (end - string) : maxlen;
|
|
+}
|
|
+
|
|
int main(int argc, char *argv[])
|
|
{
|
|
/* Action for ignoring signals we don't want to deal with. */
|