Diff for /freem/src/tp_check.c between versions 1.5 and 1.6

version 1.5, 2025/04/09 19:52:02 version 1.6, 2025/04/13 04:22:43
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/13 04:22:43  snw
    *   Fix snprintf calls
    *
  *   Revision 1.5  2025/04/09 19:52:02  snw   *   Revision 1.5  2025/04/09 19:52:02  snw
  *   Eliminate as many warnings as possible while building with -Wall   *   Eliminate as many warnings as possible while building with -Wall
  *   *
Line 93  cptab *cptab_insert(int tlevel, char *gl Line 96  cptab *cptab_insert(int tlevel, char *gl
     strcpy (t->file, gc_pth);      strcpy (t->file, gc_pth);
     stcnv_m2c (t->file);      stcnv_m2c (t->file);
           
     snprintf (t->cp_file, PATHLEN, "%s.%d.%d.chk", t->file, pid, tp_level);      snprintf (t->cp_file, PATHLEN - 1, "%s.%d.%d.chk", t->file, pid, tp_level);
   
     free (gc_ns);      free (gc_ns);
     free (gc_pth);      free (gc_pth);
Line 222  short cptab_rollback(int tlevel) Line 225  short cptab_rollback(int tlevel)
                 snprintf (cmd, STRLEN - 1, "/bin/cp '%s' '%s'", t->cp_file, t->file);                  snprintf (cmd, STRLEN - 1, "/bin/cp '%s' '%s'", t->cp_file, t->file);
                 rc = system (cmd);                  rc = system (cmd);
                 */                  */
                   /* TODO: support OS/2 */
                 rc = cp (t->file, t->cp_file);                  rc = cp (t->file, t->cp_file);
                                   
                 if (rc != 0) {                  if (rc != 0) {

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


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