Diff for /freem/src/mref.c between versions 1.4 and 1.6

version 1.4, 2025/03/09 19:50:47 version 1.6, 2025/04/09 15:16:50
Line 24 Line 24
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
  *   $Log$   *   $Log$
    *   Revision 1.6  2025/04/09 15:16:50  snw
    *   Fix buffer overruns in mref_to_external and ssvn.c
    *
    *   Revision 1.5  2025/03/22 18:43:54  snw
    *   Make STRLEN 255 chars and add BIGSTR macro for larger buffers
    *
  *   Revision 1.4  2025/03/09 19:50:47  snw   *   Revision 1.4  2025/03/09 19:50:47  snw
  *   Second phase of REUSE compliance and header reformat   *   Second phase of REUSE compliance and header reformat
  *   *
Line 162  freem_ref_t *internal_to_mref (freem_ref Line 168  freem_ref_t *internal_to_mref (freem_ref
         ref->reftype = MREF_RT_LOCAL;          ref->reftype = MREF_RT_LOCAL;
     }      }
   
     strncpy (ref->name, nam, 256);      strncpy (ref->name, nam, STRLEN);
   
     /* if no subscripts, return the ref */      /* if no subscripts, return the ref */
     if (*(ptr - 1) == EOL) {      if (*(ptr - 1) == EOL) {
Line 265  void mref_to_external (freem_ref_t *ref, Line 271  void mref_to_external (freem_ref_t *ref,
             }              }
   
         }          }
         stcnv_m2c (buf);          stncnv_m2c (buf, STRLEN);
   
         strcat (buf, ")");          strcat (buf, ")");
   

Removed from v.1.4  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>