Bug #5112 ยป mod_make_gcc_happy.patch
./tvheadend-git.mod/src/wrappers.c 2018-05-17 21:41:00.519672288 +0200 | ||
---|---|---|
197 | 197 |
pthread_attr_setstacksize(&_attr, 2*1024*1024); |
198 | 198 |
attr = &_attr; |
199 | 199 |
} |
200 |
strncpy(ts->name, "tvh:", 4);
|
|
201 |
strncpy(ts->name+4, name, sizeof(ts->name)-4);
|
|
200 |
memcpy(ts->name, "tvh:", 4);
|
|
201 |
memcpy(ts->name+4, name, sizeof(ts->name)-4);
|
|
202 | 202 |
ts->name[sizeof(ts->name)-1] = '\0'; |
203 | 203 |
ts->run = start_routine; |
204 | 204 |
ts->arg = arg; |
./tvheadend-git.mod/src/filebundle.c 2018-05-17 22:20:16.259678688 +0200 | ||
---|---|---|
261 | 261 |
i = 0; |
262 | 262 |
while (fb) { |
263 | 263 |
(*list)[i] = calloc(1, sizeof(fb_dirent)); |
264 |
strncpy((*list)[i]->name, fb->name, sizeof((*list)[i]->name));
|
|
264 |
memcpy((*list)[i]->name, fb->name, sizeof((*list)[i]->name));
|
|
265 | 265 |
(*list)[i]->name[sizeof((*list)[i]->name)-1] = '\0'; |
266 | 266 |
fb = fb->next; |
267 | 267 |
i++; |
./tvheadend-git.mod/src/lang_str.c 2018-05-17 22:25:15.789679502 +0200 | ||
---|---|---|
97 | 97 |
/* Check config/requested langs */ |
98 | 98 |
if ((langs = lang_code_split(lang)) != NULL) { |
99 | 99 |
for (i = 0; i < langs->codeslen; i++) { |
100 |
strncpy(skel.lang, langs->codes[i]->code2b, sizeof(skel.lang));
|
|
100 |
memcpy(skel.lang, langs->codes[i]->code2b, sizeof(skel.lang));
|
|
101 | 101 |
if ((e = RB_FIND(ls, &skel, link, _lang_cmp))) |
102 | 102 |
break; |
103 | 103 |
} |
... | ... | |
130 | 130 |
/* Create */ |
131 | 131 |
if (!e) { |
132 | 132 |
e = malloc(sizeof(*e) + strlen(str) + 1); |
133 |
strncpy(e->lang, lang, sizeof(e->lang));
|
|
133 |
memcpy(e->lang, lang, sizeof(e->lang));
|
|
134 | 134 |
strcpy(e->str, str); |
135 | 135 |
RB_INSERT_SORTED(ls, e, link, _lang_cmp); |
136 | 136 |
save = 1; |
./tvheadend-git.mod/src/rtsp.c 2018-05-17 22:44:59.499682717 +0200 | ||
---|---|---|
55 | 55 |
http_arg_init(&h); |
56 | 56 |
} |
57 | 57 |
strncpy(buf_body, body, sizeof(buf_body)); |
58 |
strncat(buf_body, "\r\n", 2);
|
|
58 |
strcat(buf_body, "\r\n");
|
|
59 | 59 |
snprintf(buf2, sizeof(buf2), "%"PRIu64, (uint64_t)(size + 2)); |
60 | 60 |
http_arg_set(hdr, "Content-Length", buf2); |
61 | 61 |
} |
./tvheadend-git.mod/src/transcoding/transcode/context.c 2018-05-17 23:30:11.339690084 +0200 | ||
---|---|---|
498 | 498 |
struct { |
499 | 499 |
const AVClass *class; |
500 | 500 |
} logctx = { &logclass }; |
501 |
AVFilter *iavflt = NULL, *oavflt = NULL; |
|
501 |
const AVFilter *iavflt = NULL, *oavflt = NULL;
|
|
502 | 502 |
AVFilterInOut *iavfltio = NULL, *oavfltio = NULL; |
503 | 503 |
AVBufferSrcParameters *par = NULL; |
504 | 504 |
int i, ret = -1; |
./tvheadend-git.mod/src/transcoding/codec/codec.c 2018-05-17 23:37:01.129691197 +0200 | ||
---|---|---|
102 | 102 |
str_snprintf(codec_title, sizeof(codec_title), |
103 | 103 |
self->long_name ? "%s: %s%s" : "%s%s%s", |
104 | 104 |
self->name, self->long_name ? self->long_name : "", |
105 |
(self->capabilities & CODEC_CAP_EXPERIMENTAL) ? " (Experimental)" : "") |
|
105 |
(self->capabilities & AV_CODEC_CAP_EXPERIMENTAL) ? " (Experimental)" : "")
|
|
106 | 106 |
) { |
107 | 107 |
return NULL; |
108 | 108 |
} |