10000 add explicit format specifier to printf() invocations · v4l2loopback/v4l2loopback@64a216a · GitHub
[go: up one dir, main page]

Skip to content

Commit 64a216a

Browse files
committed
add explicit format specifier to printf() invocations
CWE-134
1 parent af1be06 commit 64a216a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v4l2loopback.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static inline void unset_flags(struct v4l2l_buffer *buffer)
657657
static void vidioc_fill_name(char *buf, int len, int nr)
658658
{
659659
if (card_label[nr] != NULL) {
660-
snprintf(buf, len, card_label[nr]);
660+
snprintf(buf, len, "%s", card_label[nr]);
661661
} else {
662662
snprintf(buf, len, "Dummy video device (0x%04X)", nr);
663663
}

0 commit comments

Comments
 (0)
0