comparison src/audacious/widgets/playlist_list.c @ 2361:f24ae4f40e29 trunk

[svn] - security and warning fixes from ssommer@suse
author nenolod
date Thu, 18 Jan 2007 03:02:55 -0800
parents 4b2c7d9523e7
children ab2b1b6f6179
comparison
equal deleted inserted replaced
2360:d2d296826b06 2361:f24ae4f40e29
674 { 674 {
675 g_snprintf(length, sizeof(length), "%d:%-2.2d", 675 g_snprintf(length, sizeof(length), "%d:%-2.2d",
676 entry->length / 60000, (entry->length / 1000) % 60); 676 entry->length / 60000, (entry->length / 1000) % 60);
677 } 677 }
678 678
679 strncat(tail, length, sizeof(tail)); 679 strncat(tail, length, sizeof(tail) - 1);
680 tail_len = strlen(tail); 680 tail_len = strlen(tail);
681 681
682 max_time_len = MAX(max_time_len, tail_len); 682 max_time_len = MAX(max_time_len, tail_len);
683 683
684 if (pos != -1 && tpadding_dwidth <= 0) 684 if (pos != -1 && tpadding_dwidth <= 0)