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 bb11612..7d3d13e 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, SvGChar(ssv));
+ g_value_set_string(&val, SvPV(ssv,PL_na));
lu_ent_clear(self, LU_GECOS);
lu_ent_add(self, LU_GECOS, &val);
} else {