Index: branches/eam_branches/relphot.20210521/src/Shutdown.c
===================================================================
--- branches/eam_branches/relphot.20210521/src/Shutdown.c	(revision 41602)
+++ branches/eam_branches/relphot.20210521/src/Shutdown.c	(revision 41632)
@@ -10,13 +10,12 @@
 int Shutdown (char *format, ...) {  
   va_list argp;
-  char *formatplus;
+  char formatplus[1024];
   
-  ALLOCATE (formatplus, char, strlen(format));
-  strcpy (formatplus, format);
-  strcat (formatplus, "\n");
+  // we cannot allocate this with the ohana allocation tools
+  // because it could deadlock
+  snprintf (formatplus, 1024, "%s\n", format);
 
   va_start (argp, format);
   vfprintf (stderr, formatplus, argp);
-  free (formatplus);
   va_end (argp);
 
