diff --git a/src/main.c b/src/main.c
index 3be198542db77a3895944bac5019d561c7770172..302d34820256a2f344b4697f0fbf2ad28240c497 100644
--- a/src/main.c
+++ b/src/main.c
@@ -7,7 +7,7 @@
*
* This file part of: SExtractor
*
-* Copyright: (C) 1993-2013 Emmanuel Bertin -- IAP/CNRS/UPMC
+* Copyright: (C) 1993-2018 IAP/CNRS/UPMC
*
* License: GNU General Public License
*
@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see .
*
-* Last modified: 04/06/2013
+* Last modified: 09/01/2018
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
@@ -76,7 +76,7 @@ setlinebuf(stdout);
prefs.ncommand_line = argc;
prefs.pipe_flag = 0;
prefs.nimage_name = 1;
- prefs.image_name[0] = "image";
+ strcpy(prefs.image_name[0], "image");
strcpy(prefs.prefs_name, "default.sex");
narg = nim = 0;
@@ -132,7 +132,7 @@ setlinebuf(stdout);
strncpy(str, argv[a], MAXCHARL-1);
for (pstr=NULL;(pstr=strtok(pstr?NULL:str, notokstr)); nim++)
if (nim.
*
-* Last modified: 02/12/2015
+* Last modified: 09/01/2018
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
@@ -50,7 +50,7 @@ typedef struct
char **command_line; /* Command line */
int ncommand_line; /* nb of params */
char prefs_name[MAXCHAR]; /* prefs filename*/
- char *(image_name[2]); /* image filenames */
+ char image_name[2][MAXCHAR]; /* image filenames */
int nimage_name; /* nb of params */
char cat_name[MAXCHAR]; /* catalog filename*/
char head_suffix[MAXCHAR]; /* ext. header suffix */