--- freem/src/namespace.c 2025/03/09 19:50:47 1.3 +++ freem/src/namespace.c 2025/04/09 19:52:02 1.5 @@ -1,5 +1,5 @@ /* - * $Id: namespace.c,v 1.3 2025/03/09 19:50:47 snw Exp $ + * $Id: namespace.c,v 1.5 2025/04/09 19:52:02 snw Exp $ * Namespace support * * @@ -24,6 +24,12 @@ * along with FreeM. If not, see . * * $Log: namespace.c,v $ + * Revision 1.5 2025/04/09 19:52:02 snw + * Eliminate as many warnings as possible while building with -Wall + * + * Revision 1.4 2025/04/02 03:02:42 snw + * Stop requiring users to pass -e to fmadm when -u or -g are passed + * * Revision 1.3 2025/03/09 19:50:47 snw * Second phase of REUSE compliance and header reformat * @@ -59,7 +65,6 @@ #endif #define LOCK 'l' -#define ZDEALLOCATE 'D' void ns_error(char *ns, char *e) { @@ -105,7 +110,6 @@ void set_namespace(char *ns, int verbose /* turn off all the old so-called "journal" implementation */ ug_buf[HOME][0] = EOL; jour_flag = 0; - jourfile[0] = NUL; /* the real journal file */ jour_file[0] = NUL; @@ -242,11 +246,11 @@ jour_end: /* set up local engine */ for(i = 0; i < 256; i++) ns_buf[i] = NUL; - if(get_conf(ns, "local_engine", ns_buf) == TRUE) { - sprintf(loc_engine, "%s", ns_buf); + if(get_conf (ns, "local_engine", ns_buf) == TRUE) { + snprintf (loc_engine, sizeof (loc_engine), "%s", ns_buf); } else { - sprintf(loc_engine, "BUILTIN"); + sprintf (loc_engine, "BUILTIN"); }