Revision: 77195
          http://sourceforge.net/p/brlcad/code/77195
Author:   starseeker
Date:     2020-09-23 02:52:58 +0000 (Wed, 23 Sep 2020)
Log Message:
-----------
Incorrect - revert

Modified Paths:
--------------
    brlcad/trunk/src/libged/stat/fort.c

Modified: brlcad/trunk/src/libged/stat/fort.c
===================================================================
--- brlcad/trunk/src/libged/stat/fort.c 2020-09-23 02:40:32 UTC (rev 77194)
+++ brlcad/trunk/src/libged/stat/fort.c 2020-09-23 02:52:58 UTC (rev 77195)
@@ -4312,7 +4312,7 @@
     if (text_style < (1U << n_styles)) {
         for (i = 0; i < n_styles; ++i) {
             if (text_style & (1 << i)) {
-                bu_strlcat(style_tag, text_styles[i], sz-1);
+                bu_strlcat(style_tag, text_styles[i], sz);
             }
         }
     } else {
@@ -4320,7 +4320,7 @@
     }
 
     if (bg_color_number < n_bg_colors) {
-        bu_strlcat(style_tag, bg_colors[bg_color_number], sz-1);
+        bu_strlcat(style_tag, bg_colors[bg_color_number], sz);
     } else {
         goto error;
     }
@@ -4367,7 +4367,7 @@
 
 
 reset_style:
-    bu_strlcat(reset_style_tag, UNIVERSAL_RESET_TAG, sz-1);
+    bu_strlcat(reset_style_tag, UNIVERSAL_RESET_TAG, sz);
     return;
 
 error:
@@ -4393,7 +4393,7 @@
     if (text_style < (1U << n_styles)) {
         for (i = 0; i < n_styles; ++i) {
             if (text_style & (1 << i)) {
-                bu_strlcat(style_tag, text_styles[i], sz-1);
+                bu_strlcat(style_tag, text_styles[i], sz);
             }
         }
     } else {
@@ -4402,13 +4402,13 @@
 
     if (fg_color_number < n_fg_colors) {
         if (fg_color_number)
-            bu_strlcat(style_tag, fg_colors[fg_color_number], sz-1);
+            bu_strlcat(style_tag, fg_colors[fg_color_number], sz);
     } else {
         goto error;
     }
 
     if (bg_color_number < n_bg_colors) {
-        bu_strlcat(style_tag, bg_colors[bg_color_number], sz-1);
+        bu_strlcat(style_tag, bg_colors[bg_color_number], sz);
     } else {
         goto error;
     }
@@ -4464,7 +4464,7 @@
 
 
 reset_style:
-    bu_strlcat(reset_style_tag, UNIVERSAL_RESET_TAG, sz-1);
+    bu_strlcat(reset_style_tag, UNIVERSAL_RESET_TAG, sz);
     len = strlen(reset_style_tag);
     get_style_tag_for_cell(props, row, col, reset_style_tag + len, sz - len);
     return;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to