Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
msc
sextractor
Commits
7e3cadd1
Commit
7e3cadd1
authored
Jan 09, 2018
by
Emmanuel Bertin
Browse files
Fixed double image syntax issue when using spaces between the two filenames.
parent
e9ebcc2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main.c
View file @
7e3cadd1
...
...
@@ -7,7 +7,7 @@
*
* This file part of: SExtractor
*
* Copyright: (C) 1993-201
3 Emmanuel Bertin --
IAP/CNRS/UPMC
* Copyright: (C) 1993-201
8
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 <http://www.gnu.org/licenses/>.
*
* Last modified: 0
4
/0
6
/201
3
* Last modified: 0
9
/0
1
/201
8
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
...
@@ -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
<
MAXIMAGE
)
prefs
.
image_name
[
nim
]
=
pstr
;
strncpy
(
prefs
.
image_name
[
nim
]
,
pstr
,
MAXCHAR
-
1
)
;
else
error
(
EXIT_FAILURE
,
"*Error*: Too many input images: "
,
pstr
);
}
...
...
src/prefs.h
View file @
7e3cadd1
...
...
@@ -7,7 +7,7 @@
*
* This file part of: SExtractor
*
* Copyright: (C) 1993-201
5 Emmanuel Bertin --
IAP/CNRS/UPMC
* Copyright: (C) 1993-201
8
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 <http://www.gnu.org/licenses/>.
*
* Last modified: 0
2/12
/201
5
* Last modified: 0
9/01
/201
8
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment