summaryrefslogtreecommitdiff
path: root/storage/connect/value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect/value.cpp')
-rw-r--r--storage/connect/value.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/connect/value.cpp b/storage/connect/value.cpp
index 2522fa178cd..8857608015e 100644
--- a/storage/connect/value.cpp
+++ b/storage/connect/value.cpp
@@ -1129,7 +1129,8 @@ void TYPVAL<PSZ>::SetValue_psz(PSZ s)
/***********************************************************************/
void TYPVAL<PSZ>::SetValue_pvblk(PVBLK blk, int n)
{
- strncpy(Strp, blk->GetCharValue(n), Len);
+ // STRBLK's can return a NULL pointer
+ SetValue_psz(blk->GetCharValue(n));
} // end of SetValue_pvblk
/***********************************************************************/