diff options
author | sfan5 <sfan5@live.de> | 2023-01-09 16:52:45 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-01-12 22:02:07 +0100 |
commit | 2703a2c8ff87c18610534f2ba2acd15fda8acb9b (patch) | |
tree | 4a4cb13c375615f4a8f102506395253c0492bfa2 /video/out/vo_tct.c | |
parent | 57f00a0372c81a154e38e346e8e4e8577d9788d3 (diff) | |
download | mpv-2703a2c8ff87c18610534f2ba2acd15fda8acb9b.tar.bz2 mpv-2703a2c8ff87c18610534f2ba2acd15fda8acb9b.tar.xz |
video: replace sprintf usage
Diffstat (limited to 'video/out/vo_tct.c')
-rw-r--r-- | video/out/vo_tct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_tct.c b/video/out/vo_tct.c index 209515bd84..abe749db13 100644 --- a/video/out/vo_tct.c +++ b/video/out/vo_tct.c @@ -297,7 +297,7 @@ static int preinit(struct vo *vo) for (int i = 0; i < 256; ++i) { char buff[8]; - p->lut[i].width = sprintf(buff, ";%d", i); + p->lut[i].width = snprintf(buff, sizeof(buff), ";%d", i); memcpy(p->lut[i].str, buff, 4); // some strings may not end on a null byte, but that's ok. } |