From 7aa79c8aa254a2dc612eccdd1d3be1070e809b4d Mon Sep 17 00:00:00 2001 From: pjk Date: Tue, 4 May 2004 15:27:24 +0000 Subject: [PATCH] Fix segfault in recode (recode with an int src, string dest, where the src is SYSMIS --- src/recode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recode.c b/src/recode.c index 90a405c8..f2158f4f 100644 --- a/src/recode.c +++ b/src/recode.c @@ -697,7 +697,7 @@ find_src_numeric (struct rcd_var * v, struct ccase * c) if ((v->flags & RCD_DEST_MASK) == RCD_DEST_NUMERIC) c->data[v->dest->fv].f = v->sysmis.f; else - memcpy (c->data[v->dest->fv].s, v->sysmis.c, + memcpy (c->data[v->dest->fv].s, v->sysmis.s, v->dest->width); } return NULL; -- 2.30.2