diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2010-07-22 11:58:04 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2010-07-22 11:58:04 +0000 |
commit | 0bcff2706bc6931365c94b616ccefb734b555dbc (patch) | |
tree | fcf8d993c0734075a7312c23d883ce56f852e4fa /regress/sys/dev/video | |
parent | 15e8943bc81d10f89aab18c17fe178ff33ab02b3 (diff) |
Replace strncat() with strlcat().
Diffstat (limited to 'regress/sys/dev/video')
-rw-r--r-- | regress/sys/dev/video/videotest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/dev/video/videotest.c b/regress/sys/dev/video/videotest.c index 51e069fb985..f255f6def59 100644 --- a/regress/sys/dev/video/videotest.c +++ b/regress/sys/dev/video/videotest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: videotest.c,v 1.2 2010/07/22 11:55:26 mglocker Exp $ */ +/* $OpenBSD: videotest.c,v 1.3 2010/07/22 11:58:03 mglocker Exp $ */ /* * Copyright (c) 2010 Marcus Glocker <mglocker@openbsd.org> @@ -399,7 +399,7 @@ test_capture(char *dev_name, char *dev_full, int access, int use_poll) /* insert dynamic huffmann table to mjpeg */ jpeg_insert_dht(buf, n1, img, &img_len); - strncat(filename, ".jpg", 4); + strlcat(filename, ".jpg", sizeof(filename)); break; case V4L2_PIX_FMT_YUYV: printf("Convertion for YUYV not supported!\n"); @@ -407,7 +407,7 @@ test_capture(char *dev_name, char *dev_full, int access, int use_poll) img_len = n1; memcpy(img, buf, img_len); - strncat(filename, ".raw", 4); + strlcat(filename, ".raw", sizeof(filename)); break; default: break; |