File s390-tools-sles11-tape390_display-stack_overwrite of Package s390-tools

Description: tape390_display: Fix stack overwrite
Symptom:     If <message2> in command
		tape390_display <message1> <message2> <node>
	     contains 8 bytes, then *** stack smashing detected *** and
	     additional backtrace information maybe displayed
Problem:     A '\0' is written beyond the scope of a character array
Solution:    Writing '\0' is redundant, because the underlying structure was
	     initialized with 0 before.
---
 tape390/tape390_display.c |    1 -
 1 files changed, 1 deletion(-)

Index: s390-tools-sles11/tape390/tape390_display.c
===================================================================
--- s390-tools-sles11.orig/tape390/tape390_display.c
+++ s390-tools-sles11/tape390/tape390_display.c
@@ -144,7 +144,6 @@ strchkcpy(char *tgt, const char *src) {
 			warned = 1;
 		}
 	}
-	*(tgt+c) = '\0';
 }
 
 int main(int argc, char *argv[]) {
openSUSE Build Service is sponsored by