aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--USER/USER.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/USER/USER.xs b/USER/USER.xs
index 7d3d13e..bb11612 100644
--- a/USER/USER.xs
+++ b/USER/USER.xs
@@ -679,7 +679,7 @@ Ent_Gecos(self, ssv)
} else if( SvPOK( ssv ) ) {
memset(&val, 0, sizeof(val));
g_value_init(&val, G_TYPE_STRING);
- g_value_set_string(&val, SvPV(ssv,PL_na));
+ g_value_set_string(&val, SvGChar(ssv));
lu_ent_clear(self, LU_GECOS);
lu_ent_add(self, LU_GECOS, &val);
} else {