icon (9.4.3-2) src/runtime/fmisc.r

Summary

 src/runtime/fmisc.r |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

--- icon-9.4.3.orig/src/runtime/fmisc.r
+++ icon-9.4.3/src/runtime/fmisc.r
@@ -195,7 +195,9 @@
                runerr(0);
             dst->table.size = src->table.size;
             dst->table.mask = src->table.mask;
-            dst->table.defvalue = src->table.defvalue;
+            memcpy((char *) &dst->table.defvalue,
+	           (char *) &src->table.defvalue,
+		   sizeof(dst->table.defvalue));
             for (i = 0; i < HSegs && src->table.hdir[i] != NULL; i++)
                memcpy((char *)dst->table.hdir[i], (char *)src->table.hdir[i],
                   src->table.hdir[i]->blksize);