mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +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)
|
void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||||
{
|
{
|
||||||
char buf[100];
|
char buf[100], buf2[259];
|
||||||
bool has_vpid = false;
|
bool has_vpid = false;
|
||||||
bool is_webchan = false;
|
bool is_webchan = false;
|
||||||
int xres = 0, yres = 0, aspectRatio = 0, framerate = -1, i = 0;
|
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 = "E2 Logo 1";
|
||||||
r.key += ": ";
|
r.key += ": ";
|
||||||
snprintf(buf, sizeof(buf), "%s.png", e2filename1);
|
snprintf(buf2, sizeof(buf2), "%s.png", e2filename1);
|
||||||
r.val = buf;
|
r.val = buf2;
|
||||||
v.push_back(r);
|
v.push_back(r);
|
||||||
|
|
||||||
if ((std::string) e2filename1 != (std::string) e2filename2) {
|
if ((std::string) e2filename1 != (std::string) e2filename2) {
|
||||||
r.key = "E2 Logo 2";
|
r.key = "E2 Logo 2";
|
||||||
r.key += ": ";
|
r.key += ": ";
|
||||||
snprintf(buf, sizeof(buf), "%s.png", e2filename2);
|
snprintf(buf2, sizeof(buf2), "%s.png", e2filename2);
|
||||||
r.val = buf;
|
r.val = buf2;
|
||||||
v.push_back(r);
|
v.push_back(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user