Skip to content
Snippets Groups Projects
Commit 62e4a1bc authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Remove limit for line length

parent dec6ff0c
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,6 @@ typedef struct _IO_FILE FILE;
struct display_state;
#define OSD_MAX_LINE_LEN 1024
#define OSD_TRIE_LEN (26+10+1)
struct osd_set_trie
......@@ -44,7 +42,7 @@ struct osd_line {
char *outline_color;
int outline_width;
union { // Data dependent on type
char text[OSD_MAX_LINE_LEN]; // in UTF-8
char * text; // in UTF-8
unsigned int percent; // 0..100 for percentages and slider
} u;
};
......
......@@ -230,7 +230,7 @@ parse_msg(unsigned char *buf, int len)
if (!key[0])
{
l = msg_add_line(msg, OSD_TYPE_TEXT);
sprintf(l->u.text, "%.*s", OSD_MAX_LINE_LEN, val);
l->u.text = val;
}
else if (!strcmp(key, "percentage") || !strcmp(key, "percent"))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment