gbranden pushed a commit to branch master
in repository groff.

commit 4f79322b303022ab606e26064f73910a6058ee68
Author: G. Branden Robinson <[email protected]>
Date:   Tue Nov 6 06:34:41 2018 -0500

    src/roff/troff/input.cpp: Note strlen return type.
    
        * src/roff/troff/input.cpp: strlen() returns a size_t, not an
        int.  My apologies for the '70s flashback.
    
    Signed-off-by: G. Branden Robinson <[email protected]>
---
 src/roff/troff/input.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 6af7a03..a1bd8ea 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -7701,7 +7701,7 @@ void macro_source()
     // FOOBAR.tmac and vice versa
     if (!fp) {
       const char *fn = nm.contents();
-      int fnlen = strlen(fn);
+      size_t fnlen = strlen(fn);
       if (strncasecmp(fn, MACRO_PREFIX, sizeof(MACRO_PREFIX) - 1) == 0) {
        char *s = new char[fnlen + sizeof(MACRO_POSTFIX)];
        strcpy(s, fn + sizeof(MACRO_PREFIX) - 1);

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to