diff options
Diffstat (limited to 'audio/rawrec/files/patch-main.c')
-rw-r--r-- | audio/rawrec/files/patch-main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/rawrec/files/patch-main.c b/audio/rawrec/files/patch-main.c new file mode 100644 index 000000000000..d0d41aeed4c5 --- /dev/null +++ b/audio/rawrec/files/patch-main.c @@ -0,0 +1,15 @@ +--- 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. */ |