r49: Changed sprintf to snprintf
[ctsim.git] / src / phm2sdf.c
index 7da5c48161aebb643f45abac563096f8efa18232..f87e5acee06807cc17d558e3a716796ef6ce23c5 100644 (file)
@@ -2,8 +2,11 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: phm2sdf.c,v 1.7 2000/05/08 20:02:32 kevin Exp $
+**  $Id: phm2sdf.c,v 1.8 2000/05/11 01:06:30 kevin Exp $
 **  $Log: phm2sdf.c,v $
+**  Revision 1.8  2000/05/11 01:06:30  kevin
+**  Changed sprintf to snprintf
+**
 **  Revision 1.7  2000/05/08 20:02:32  kevin
 **  ANSI C changes
 **
@@ -344,9 +347,10 @@ main (const int argc, char *const argv[])
 #else
   im_global = image_create (opt_outfile, opt_nx, opt_ny);
 #endif
-  
-  if (opt_phmnum > 0)
-    phm = phm_create (opt_phmnum);
+
+  if (opt_phmnum >= 0)
+      phm = phm_create (opt_phmnum);
+
 #ifdef MPI_CT
   else {
     if (mpi_ct.my_rank == 0)