summaryrefslogtreecommitdiffstats
path: root/kcontrol/info
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-10-12 20:03:52 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-12 20:03:52 +0200
commit180cd2fc18a958f0297fdcc2697cf6d500e69a3f (patch)
treebc49224b8efac0192cbc72a823c4a53da513e133 /kcontrol/info
parent9a75b7498c4b4aa33e86f5044649123291ac47a7 (diff)
downloadtdebase-180cd2fc18a958f0297fdcc2697cf6d500e69a3f.tar.gz
tdebase-180cd2fc18a958f0297fdcc2697cf6d500e69a3f.zip
Fix potential segmentation fault in kcontrol info module
Diffstat (limited to 'kcontrol/info')
-rw-r--r--kcontrol/info/info_openbsd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kcontrol/info/info_openbsd.cpp b/kcontrol/info/info_openbsd.cpp
index 12ec8ee2d..7b484da76 100644
--- a/kcontrol/info/info_openbsd.cpp
+++ b/kcontrol/info/info_openbsd.cpp
@@ -235,7 +235,7 @@ bool GetInfo_Sound (TQListView *lbox)
if ((pos = s.find("at ")) >= 0) {
pos += 3; // skip "at "
start = end = s.ascii();
- for(; (*end!=':') && (*end!='\n'); end++);
+ for(; *end && (*end!=':') && (*end!='\n'); end++);
len = end - start;
dev = (char *) malloc(len + 1);
strncpy(dev, start, len);