Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
View | Details | Raw Unified | Return to bug 338619 | Differences between
and this patch

Collapse All | Expand All

(-)a/plugins/ADM_videoFilters/Srt/ADM_vidSRTload.cpp (-4 / +4 lines)
Lines 86-92 Link Here
86
	return 0;
86
	return 0;
87
87
88
  }
88
  }
89
  while (fgets (string, 200, _fd))
89
  while (fgets (string, sizeof(string), _fd))
90
    {
90
    {
91
      _line++;
91
      _line++;
92
    }
92
    }
Lines 104-110 Link Here
104
//
104
//
105
  for (uint32_t i = 0; i < _line; i++)
105
  for (uint32_t i = 0; i < _line; i++)
106
    {
106
    {
107
      fgets (string, ADM_RAW, _fd);
107
      fgets (string, sizeof(string), _fd);
108
      //printf("\n in : %s ",string);
108
      //printf("\n in : %s ",string);
109
      if (string[0] != '{')
109
      if (string[0] != '{')
110
	continue;
110
	continue;
Lines 250-256 Link Here
250
  // first cound how many line
250
  // first cound how many line
251
  line = 0;
251
  line = 0;
252
  _line = 0;
252
  _line = 0;
253
  while (fgets (string, 300, _fd))
253
  while (fgets (string, sizeof(string), _fd))
254
    line++;
254
    line++;
255
  printf ("\n subs : %ld lines\n", line);
255
  printf ("\n subs : %ld lines\n", line);
256
  // rewind
256
  // rewind
Lines 272-278 Link Here
272
  for (uint32_t i = 0; i < line; i++)
272
  for (uint32_t i = 0; i < line; i++)
273
    {
273
    {
274
	current=&_subs[_line];
274
	current=&_subs[_line];
275
	fgets (string, ADM_RAW, _fd);
275
	fgets (string, sizeof(string), _fd);
276
	ADM_utfConv(final,string,strlen(string),&finallen);
276
	ADM_utfConv(final,string,strlen(string),&finallen);
277
	// Purge cr/lf
277
	// Purge cr/lf
278
	switch (state)
278
	switch (state)

Return to bug 338619