Mercurial > trustbridge
changeset 316:43416dcbcc50
Merged
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 04 Apr 2014 13:34:30 +0200 |
parents | b832231640ab (current diff) 5e4ae994a320 (diff) |
children | 46fd11699646 |
files | |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/tests/cinstprocesstest.cpp Fri Apr 04 13:34:15 2014 +0200 +++ b/ui/tests/cinstprocesstest.cpp Fri Apr 04 13:34:30 2014 +0200 @@ -103,8 +103,9 @@ * see nsstest for the real test of that code */ #ifdef WIN32 { - char buf[255]; - snprintf(buf, 255, "APPDATA=%s",fakeHome.path().toLocal8Bit().constData()); + char buf[fakeHome.path().toLocal8Bit().size() + 9]; + snprintf(buf, fakeHome.path().toLocal8Bit().size() + 9, + "APPDATA=%s",fakeHome.path().toLocal8Bit().constData()); QVERIFY(_putenv (buf) != -1); } #else