--- freem/src/fmadm.c	2025/01/19 02:04:04	1.1
+++ freem/src/fmadm.c	2025/03/09 19:14:25	1.7
@@ -1,23 +1,11 @@
 /*
- *                            *
- *                           * *
- *                          *   *
- *                     ***************
- *                      * *       * *
- *                       *  MUMPS  *
- *                      * *       * *
- *                     ***************
- *                          *   *
- *                           * *
- *                            *
- *
- *   fmadm.c
+ *   $Id: fmadm.c,v 1.7 2025/03/09 19:14:25 snw Exp $
  *    FreeM Administration Tool
  *
  *  
- *   Author: Serena Willis <jpw@coherent-logic.com>
+ *   Author: Serena Willis <snw@coherent-logic.com>
  *    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,13 @@
  *   You should have received a copy of the GNU Affero Public License
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *
+ *   $Log: fmadm.c,v $
+ *   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 <sys/types.h>
@@ -46,6 +41,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
+#include <ctype.h>
 #include "config.h"
 #include "transact.h"
 #include "namespace.h"
@@ -554,6 +550,8 @@ int fm_shell (void)
         
         cmdt = strtok (fmarl_buf, " ");
 
+        if (cmdt == (char *) NULL) continue;
+        
         for (i = 0; i < strlen (cmdt); i++) cmdt[i] = cmdt[i] | 0140;        
         
         if (strcmp (cmdt, "exit") == 0) cmd = FMAC_EXIT;
@@ -757,7 +755,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:
@@ -1023,8 +1021,10 @@ int fm_edit (short object, int optc, cha
         case OBJ_ROUTINE:
             return fma_routines_edit (optc, options);
 
+        /*
         case OBJ_GLOBAL:
             return fma_globals_edit (optc, options);
+        */
             
         default:
             fprintf (stderr, "fmadm:  'edit' is an invalid action for '%s'\n", obj_str);