increase string compose buffer size trunk
authornathan
Thu, 29 May 2008 06:26:13 +0800
branchtrunk
changeset 25f0ca0c236cfc
parent 24 a2a8e9ed1368
child 26 0953c008ab80
increase string compose buffer size
premiereepg.c
     1.1 --- a/premiereepg.c	Sat Mar 15 03:38:25 2008 +0100
     1.2 +++ b/premiereepg.c	Thu May 29 06:26:13 2008 +0800
     1.3 @@ -283,7 +283,7 @@
     1.4                    trNOOP("SMS"),
     1.5                    trNOOP("WWW")
     1.6                    };
     1.7 -                char buff[512];
     1.8 +                char buff[2048];
     1.9                  int p=0;
    1.10                  const unsigned char *data=d->getData().getData()+2;
    1.11                  for(int i=0; i<5; i++) {
    1.12 @@ -296,7 +296,7 @@
    1.13                break;
    1.14              case 0xF1: // parental rating
    1.15                if(SetupPE.RatingInfo) {
    1.16 -                char buff[512];
    1.17 +                char buff[2048];
    1.18                  int p=0;
    1.19                  const unsigned char *data=d->getData().getData()+2;
    1.20                  p+=snprintf(&buff[p],sizeof(buff)-p,"\n%s: %d %s",tr("Rating"),data[0]+3,tr("years"));