File tin-2.6.0-unread-not-lines.patch of Package tin

Index: tin-2.6.4/src/group.c
===================================================================
--- tin-2.6.4.orig/src/group.c
+++ tin-2.6.4/src/group.c
@@ -1372,15 +1372,11 @@ build_sline(
 				break;
 
 			case 'L':	/* lines */
-				if (arts[j].line_count != -1)
-					strcat(buffer, tin_ltoa(arts[j].line_count, grp_fmt.len_linecnt));
-				else {
-					buf = buffer + strlen(buffer);
-					for (k = (int) grp_fmt.len_linecnt; k > 1; --k)
-						*buf++ = ' ';
-					*buf++ = '?';
-					*buf = '\0';
-				}
+ 				{
+ 					char tmp_buffer[5];
+ 					STRCPY(tmp_buffer, tin_ltoa(sbuf.unread, 4));
+ 						strncat(buffer, tmp_buffer, 4);
+ 				}
 				break;
 
 			case 'm':	/* article flags, tag number, or whatever */
openSUSE Build Service is sponsored by