comparison mp3.c @ 2736:fbc1944cd095 libavformat

remove unnecessary -1 from snprintf len
author andoma
date Wed, 14 Nov 2007 06:33:35 +0000
parents 6fba7e16a6c7
children 1285feca09b7
comparison
equal deleted inserted replaced
2735:6fba7e16a6c7 2736:fbc1944cd095
583 int totlen = 0; 583 int totlen = 0;
584 char tracktxt[10]; 584 char tracktxt[10];
585 char yeartxt[10]; 585 char yeartxt[10];
586 586
587 if(s->track) 587 if(s->track)
588 snprintf(tracktxt, sizeof(tracktxt) - 1, "%d", s->track); 588 snprintf(tracktxt, sizeof(tracktxt) , "%d", s->track);
589 if(s->year) 589 if(s->year)
590 snprintf( yeartxt, sizeof(yeartxt) , "%d", s->year ); 590 snprintf( yeartxt, sizeof(yeartxt) , "%d", s->year );
591 591
592 if(s->title[0]) totlen += 11 + strlen(s->title); 592 if(s->title[0]) totlen += 11 + strlen(s->title);
593 if(s->author[0]) totlen += 11 + strlen(s->author); 593 if(s->author[0]) totlen += 11 + strlen(s->author);