From: pjk Date: Tue, 4 May 2004 15:27:24 +0000 (+0000) Subject: Fix segfault in recode (recode with an int src, string dest, where the src X-Git-Tag: v0.4.0~265 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aa79c8aa254a2dc612eccdd1d3be1070e809b4d;p=pspp-builds.git Fix segfault in recode (recode with an int src, string dest, where the src is SYSMIS --- 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;