Build Fix -- compatibility issue with newer autoconf
[sxemacs] / src / ui / redisplay.c
index d6d0157..2f18de9 100644 (file)
@@ -1094,9 +1094,9 @@ static prop_block_dynarr *add_bufbyte_string_runes(pos_data * data,
 
                                pb.type = PROP_STRING;
                                pb.data.p_string.str =
-                                       xnew_atomic_array(Bufbyte, len);
-                               strncpy((char *)pb.data.p_string.str,
-                                       (char *)pos, len);
+                                       xnew_atomic_array(Bufbyte, len+1);
+                               xstrncpy((char *)pb.data.p_string.str,
+                                       (char *)pos, len+1);
                                pb.data.p_string.len = len;
 
                                Dynarr_add(prop, pb);
@@ -5455,6 +5455,8 @@ regenerate_window_extents_only_changed(struct window *w, Bufpos startp,
                new_start =
                    generate_display_line(w, ddl, 0, ddl->bufpos + ddl->offset,
                                          &prop, DESIRED_DISP);
+               (void)new_start; // Silence set-not-read warning.
+
                ddl->offset = 0;
 
                /* #### If there is propagated stuff the fail.  We could
@@ -5601,6 +5603,8 @@ regenerate_window_incrementally(struct window *w, Bufpos startp, Bufpos pointm)
                new_start =
                    generate_display_line(w, ddl, 0, ddl->bufpos + ddl->offset,
                                          &prop, DESIRED_DISP);
+               (void)new_start; // Silence set-not-read warning.
+
                ddl->offset = 0;
 
                /* If there is propagated stuff then it is pretty much a