summaryrefslogtreecommitdiff
path: root/os2/OS2/PrfDB/PrfDB.xs
diff options
context:
space:
mode:
Diffstat (limited to 'os2/OS2/PrfDB/PrfDB.xs')
-rw-r--r--os2/OS2/PrfDB/PrfDB.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/os2/OS2/PrfDB/PrfDB.xs b/os2/OS2/PrfDB/PrfDB.xs
index a5b2c89ca6..5465e1d136 100644
--- a/os2/OS2/PrfDB/PrfDB.xs
+++ b/os2/OS2/PrfDB/PrfDB.xs
@@ -22,7 +22,7 @@ Prf_Get(HINI hini, PSZ app, PSZ key) {
if (CheckWinError(PrfQueryProfileSize(hini, app, key, &len))) return &sv_undef;
sv = newSVpv("", 0);
- SvGROW(sv, len);
+ SvGROW(sv, len + 1);
if (CheckWinError(PrfQueryProfileData(hini, app, key, SvPVX(sv), &len))
|| (len == 0 && (app == NULL || key == NULL))) { /* Somewhy needed. */
SvREFCNT_dec(sv);