[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kfile-plugins/ps
From: Lubos Lunak <l.lunak () kde ! org>
Date: 2002-12-19 13:21:07
[Download RAW message or body]
CVS commit by lunakl:
The buf is not initialized if the if() is false.
M +1 -1 dscparse.cpp 1.7
--- kdegraphics/kfile-plugins/ps/dscparse.cpp #1.6:1.7
@@ -2314,5 +2314,5 @@ dsc_check_match_prompt(CDSC *dsc, const
{
if (count != 0) {
- char buf[MAXSTR+MAXSTR];
+ char buf[MAXSTR+MAXSTR] = '\0';
if (dsc->line_length < (unsigned int)(sizeof(buf)/2-1)) {
strncpy(buf, dsc->line, dsc->line_length);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic