Fix truncation problem when reading in long lines. Found by Koen Kooi.
[oweals/opkg-lede.git] / libopkg / pkg_dest.h
index ab895f11319cc12dacb5a42b392dd85c65ab2b71..e0840cc737b69a50b669a5927da80f7388cfac9d 100644 (file)
@@ -1,4 +1,4 @@
-/* pkg_dest.h - the itsy package management system
+/* pkg_dest.h - the opkg package management system
 
    Carl D. Worth
 
@@ -29,8 +29,7 @@ struct pkg_dest
     char *lists_dir;
     char *info_dir;
     char *status_file_name;
-    char *status_file_tmp_name;
-    FILE *status_file;
+    FILE *status_fp;
 };
 
 int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const char *lists_dir);