--- freem/src/fmadm.c 2025/02/26 00:48:27 1.3 +++ freem/src/fmadm.c 2025/03/22 18:43:54 1.8 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * fmadm.c + * $Id: fmadm.c,v 1.8 2025/03/22 18:43:54 snw Exp $ * FreeM Administration Tool * * - * Author: Serena Willis + * Author: Serena Willis * Copyright (C) 1998 MUG Deutschland - * Copyright (C) 2020, 2023 Coherent Logic Development LLC + * Copyright (C) 2020, 2023, 2025 Coherent Logic Development LLC * * * This file is part of FreeM. @@ -35,6 +23,16 @@ * You should have received a copy of the GNU Affero Public License * along with FreeM. If not, see . * + * $Log: fmadm.c,v $ + * Revision 1.8 2025/03/22 18:43:54 snw + * Make STRLEN 255 chars and add BIGSTR macro for larger buffers + * + * Revision 1.7 2025/03/09 19:14:25 snw + * First phase of REUSE compliance and header reformat + * + * + * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC + * SPDX-License-Identifier: AGPL-3.0-or-later **/ #include @@ -46,6 +44,7 @@ #include #include #include +#include #include "config.h" #include "transact.h" #include "namespace.h" @@ -90,13 +89,13 @@ extern int read_history (); /* namespace configuration */ char fma_environment[STRLEN]; char fma_namespace[STRLEN]; -char fma_routine_path[STRLEN]; -char fma_global_path[STRLEN]; -char fma_journal_path[STRLEN]; -char fma_pct_global_path[STRLEN]; -char fma_pct_routine_path[STRLEN]; +char fma_routine_path[PATHLEN]; +char fma_global_path[PATHLEN]; +char fma_journal_path[PATHLEN]; +char fma_pct_global_path[PATHLEN]; +char fma_pct_routine_path[PATHLEN]; char fma_journal_cut_threshold[STRLEN]; -char fma_locktab[STRLEN]; +char fma_locktab[PATHLEN]; short fma_base_opt = 1; short fma_min_args = 2; short fma_explicit_namespace = FALSE; @@ -759,7 +758,7 @@ int fm_shell (void) printf ("Global Path: %s\n", fma_global_path); printf ("%%-Global Path: %s\n", fma_pct_global_path); printf ("Journal File: %s\n", fma_journal_path); - printf ("Journal Cut Threshold: %ld bytes\n", fma_journal_cut_threshold); + printf ("Journal Cut Threshold: %s bytes\n", fma_journal_cut_threshold); break; case FMAC_EXIT: