$OpenBSD: patch-newsrc_c,v 1.1 2017/09/07 16:19:08 sthen Exp $

Index: newsrc.c
--- newsrc.c.orig
+++ newsrc.c
@@ -593,7 +593,7 @@ static int active_get_cache(struct NntpServer *nserv)
   if (!fp)
     return -1;
 
-  if (fgets(buf, sizeof(buf), fp) == NULL || sscanf(buf, "%ld%s", &t, file) != 1 || t == 0)
+  if (fgets(buf, sizeof(buf), fp) == NULL || sscanf(buf, "%lld%s", &t, file) != 1 || t == 0)
   {
     safe_fclose(&fp);
     return -1;
