Index: trunk/Ohana/src/opihi/cmd.basic/help.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.basic/help.c	(revision 7917)
+++ trunk/Ohana/src/opihi/cmd.basic/help.c	(revision 11084)
@@ -3,6 +3,7 @@
 int help (int argc, char **argv) {
 
+  int Nbytes;
   FILE *f;
-  char *helpdir, file[1024], buff[512];
+  char *helpdir, *file, buff[512];
 
   helpdir = get_variable ("HELPDIR");
@@ -18,7 +19,11 @@
   }
 
-  sprintf (file, "%s/%s", helpdir, argv[1]);
+  Nbytes = strlen(helpdir) + strlen(argv[1]) + 2;
+  ALLOCATE (file, char, Nbytes);
+  snprintf (file, Nbytes, "%s/%s", helpdir, argv[1]);
 
   f = fopen (file, "r");
+  free (file);
+
   if (f == NULL) {
     gprint (GP_ERR, "No help for: %s\n", argv[1]);
