Fix segfault in recode (recode with an int src, string dest, where the src
authorpjk <pjk>
Tue, 4 May 2004 15:27:24 +0000 (15:27 +0000)
committerpjk <pjk>
Tue, 4 May 2004 15:27:24 +0000 (15:27 +0000)
is SYSMIS

src/recode.c

index 90a405c868431b91f5a10c8e5dee2b464bbfc34f..f2158f4f77147dfa3deae5270a49318ae3f59cdf 100644 (file)
@@ -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;