1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/audio/rawrec/files/patch-main.c
Ion-Mihai Tetcu eb8c7516ac Update to 0.9.991
Pass maintainership to submitter.

PR:		ports/97117
Submitted by:	Rainer Alves <rainer.alves@gmail.com>
Approved by:	lawrance (mentor)
2006-05-11 12:40:29 +00:00

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. */