File pinfo-0.6.9-nul-strings.patch of Package pinfo

--- src/filehandling_functions.c
+++ src/filehandling_functions.c
@@ -311,6 +311,11 @@
 				i--;
 			}
 		}
+	        if (!Buf[Lines][0]) {
+ 	        	/* skip those ^@^H[index lines (^@ = NUL) */
+ 	      		xfree(Buf[Lines]);
+ 	      		Lines--;
+       		}
 	}
 	while (Buf[Lines][0] != INFO_TAG);	/* repeat until new node mark is found */
 
--- src/video.c
+++ src/video.c
@@ -91,6 +91,12 @@
 		if (!message[i]) continue;
 
 		int tmp = strlen(message[i]) - 1;
+		if (tmp < 0) {
+          		fprintf(stderr, 
+ 				"%s:%d: BUG: strlen(message[%d]) == 0; please report!\n",
+ 				__FILE__, __LINE__, i);
+ 	 		tmp = 0;
+       		}
 		message[i][tmp] = 0;
 		if (tmp>column)
 			mvaddstr(i + 1 - pos, 0, message[i]+column);
openSUSE Build Service is sponsored by