add open_read_close() and similar stuff
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index ac1cded..2bf4afb 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -147,9 +147,8 @@
 	check_tainted();
 #if defined(CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT)
 	{
-		char line[4096];
-
-		while (fgets(line, sizeof(line), file)) {
+		char *line;
+		while ((line = xmalloc_fgets(file)) != NULL) {
 			char *tok;
 
 			tok = strtok(line, " \t");
@@ -175,7 +174,8 @@
 					tok = "";
 					printf(" %s", tok);
 			}
-			printf("\n");
+			puts("");
+			free(line);
 		}
 		fclose(file);
 	}