mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
streaminfo2.cpp: use separate var for filename output
Avoids truncation warnings.
Origin commit data
------------------
Commit: 81dc6704ae
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-11-16 (Mon, 16 Nov 2020)
This commit is contained in:
@@ -838,7 +838,7 @@ struct row
|
||||
|
||||
void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
{
|
||||
char buf[100];
|
||||
char buf[100], buf2[259];
|
||||
bool has_vpid = false;
|
||||
bool is_webchan = false;
|
||||
int xres = 0, yres = 0, aspectRatio = 0, framerate = -1, i = 0;
|
||||
@@ -1147,15 +1147,15 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
|
||||
r.key = "E2 Logo 1";
|
||||
r.key += ": ";
|
||||
snprintf(buf, sizeof(buf), "%s.png", e2filename1);
|
||||
r.val = buf;
|
||||
snprintf(buf2, sizeof(buf2), "%s.png", e2filename1);
|
||||
r.val = buf2;
|
||||
v.push_back(r);
|
||||
|
||||
if ((std::string) e2filename1 != (std::string) e2filename2) {
|
||||
r.key = "E2 Logo 2";
|
||||
r.key += ": ";
|
||||
snprintf(buf, sizeof(buf), "%s.png", e2filename2);
|
||||
r.val = buf;
|
||||
snprintf(buf2, sizeof(buf2), "%s.png", e2filename2);
|
||||
r.val = buf2;
|
||||
v.push_back(r);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user