File slrn-0.9.8.1pl1.dif of Package slrn

--- src/group.c
+++ src/group.c
@@ -2406,14 +2406,14 @@
    tm_struct = localtime (&tloc);
    tm_struct->tm_year = rfc977_patchup_year (tm_struct->tm_year + 1900);
    fprintf (fp, "NEWGROUPS %02d%02d%02d %02d%02d%02d",
-            tm_struct->tm_year, 1 + tm_struct->tm_mon,
+            tm_struct->tm_year%100, 1 + tm_struct->tm_mon,
             tm_struct->tm_mday, tm_struct->tm_hour,
             tm_struct->tm_min, tm_struct->tm_sec);
 #else
    tm_struct = gmtime (&tloc);
    tm_struct->tm_year = rfc977_patchup_year (tm_struct->tm_year + 1900);
    fprintf (fp, "NEWGROUPS %02d%02d%02d %02d%02d%02d GMT",
-	    tm_struct->tm_year, 1 + tm_struct->tm_mon,
+	    tm_struct->tm_year%100, 1 + tm_struct->tm_mon,
 	    tm_struct->tm_mday, tm_struct->tm_hour,
 	    tm_struct->tm_min, tm_struct->tm_sec);
 #endif
openSUSE Build Service is sponsored by