Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
7 years ago
by
Emmanuel Bertin
Browse files
Options
Download
Email Patches
Plain Diff
Fixed double image syntax issue when using spaces between the two filenames.
parent
e9ebcc2a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main.c
+4
-4
src/main.c
src/prefs.h
+3
-3
src/prefs.h
with
7 additions
and
7 deletions
+7
-7
src/main.c
+
4
-
4
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
);
}
...
...
This diff is collapsed.
Click to expand it.
src/prefs.h
+
3
-
3
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 */
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets