]> andersk Git - splint.git/blobdiff - src/usymtab_interface.c
Fixed line numbering when multi-line macro parameters are used.
[splint.git] / src / usymtab_interface.c
index 3cfdff9c3667dec1f0275604792fad5555ca7dc2..d300f85521bfd8ea87b34803c2c6a488f7ff52be 100644 (file)
@@ -586,11 +586,11 @@ static /*@only@*/ multiVal
   
   if /*@-usedef@*/ (first == '\"') /*@=usedef@*/
     {
-      int len = cstring_length (text) - 2;
+      size_t len = cstring_length (text) - 2;
       char *val = mstring_create (len);
       
       llassert (cstring_lastChar (text) == '\"');
-      strncpy (val, cstring_toCharsSafe (text) + 1, size_fromInt (len));
+      strncpy (val, cstring_toCharsSafe (text) + 1, len);
       return (multiVal_makeString (cstring_fromCharsO (val)));
     }
 
This page took 0.791071 seconds and 4 git commands to generate.