Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
45f8fc77
Commit
45f8fc77
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a variable, to be a bit more fitting
parent
94347f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/text.c
+5
-5
src/text.c
with
5 additions
and
5 deletions
+5
-5
src/text.c
View file @
45f8fc77
...
...
@@ -2510,16 +2510,16 @@ void construct_argument_list(char ***arguments, char *command, char *filename)
{
char
*
copy_of_command
=
mallocstrcpy
(
NULL
,
command
);
char
*
element
=
strtok
(
copy_of_command
,
" "
);
size_t
length
=
2
;
int
count
=
2
;
while
(
element
!=
NULL
)
{
*
arguments
=
(
char
**
)
nrealloc
(
*
arguments
,
++
length
*
sizeof
(
char
*
));
(
*
arguments
)[
length
-
3
]
=
element
;
*
arguments
=
(
char
**
)
nrealloc
(
*
arguments
,
++
count
*
sizeof
(
char
*
));
(
*
arguments
)[
count
-
3
]
=
element
;
element
=
strtok
(
NULL
,
" "
);
}
(
*
arguments
)[
length
-
2
]
=
filename
;
(
*
arguments
)[
length
-
1
]
=
NULL
;
(
*
arguments
)[
count
-
2
]
=
filename
;
(
*
arguments
)[
count
-
1
]
=
NULL
;
}
#endif
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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