commit 45f8fc77e0de6e1090d572fc2e49def0b9d62f00
parent 94347f081107e1061b4ddb88986f61da4baff021
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 22 Apr 2018 12:05:19 +0200
tweaks: rename a variable, to be a bit more fitting
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -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