Skip to content

Commit

Permalink
Fix scanf/printf formatting
Browse files Browse the repository at this point in the history
Closes: umlaeute#426
  • Loading branch information
umlaeute committed Apr 26, 2021
1 parent 570ffb0 commit 81b8df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/v4l2loopback-ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ static void print_conf(struct v4l2_loopback_config *cfg)
{
MARK();
if (!cfg) {
printf("configuration: %s\n", cfg);
printf("configuration: %p\n", cfg);
return;
}
MARK();
Expand Down Expand Up @@ -657,7 +657,7 @@ static int parse_caps(const char *buffer, t_caps *caps)
if (!(buffer && *buffer))
return 1;

if (sscanf(buffer, "%4c:%dx%d@%d/%d", &fourcc, &caps->width,
if (sscanf(buffer, "%4c:%dx%d@%d/%d", fourcc, &caps->width,
&caps->height, &caps->fps_num, &caps->fps_denom) <= 0) {
}
caps->fourcc = str2fourcc(fourcc);
Expand Down

0 comments on commit 81b8df7

Please sign in to comment.