Diff for /freem/src/ssvn_library.c between versions 1.3 and 1.4

version 1.3, 2025/03/09 19:50:47 version 1.4, 2025/03/22 18:43:54
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.4  2025/03/22 18:43:54  snw
    *   Make STRLEN 255 chars and add BIGSTR macro for larger buffers
    *
  *   Revision 1.3  2025/03/09 19:50:47  snw   *   Revision 1.3  2025/03/09 19:50:47  snw
  *   Second phase of REUSE compliance and header reformat   *   Second phase of REUSE compliance and header reformat
  *   *
Line 53  void ssvn_library_add_dir(char *libdir) Line 56  void ssvn_library_add_dir(char *libdir)
   
     DIR *dir;      DIR *dir;
     struct dirent *ent;      struct dirent *ent;
     char filename[STRLEN];      char filename[PATHLEN];
     char rtnname[256];      char rtnname[256];
     char *rtnext;      char *rtnext;
           
Line 65  void ssvn_library_add_dir(char *libdir) Line 68  void ssvn_library_add_dir(char *libdir)
     dir = opendir (libdir);      dir = opendir (libdir);
     while ((ent = readdir (dir)) != NULL) {      while ((ent = readdir (dir)) != NULL) {
   
         strncpy (filename, ent->d_name, STRLEN - 1);          strncpy (filename, ent->d_name, PATHLEN);
   
         rtnext = ent->d_name + (strlen (ent->d_name) - 2);          rtnext = ent->d_name + (strlen (ent->d_name) - 2);
                   
Line 94  void ssvn_library_add_dir(char *libdir) Line 97  void ssvn_library_add_dir(char *libdir)
   
 void ssvn_library_update(void)  void ssvn_library_update(void)
 {  {
     char t_buf[STRLEN];      char t_buf[PATHLEN];
           
     stcpy (t_buf, rou0plib);      stcpy (t_buf, rou0plib);
     stcnv_m2c (t_buf);      stcnv_m2c (t_buf);

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


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