summaryrefslogtreecommitdiff
path: root/src/htscoremain.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-08-17 07:57:44 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-08-17 07:57:44 +0000
commit5ab61bd6e3c21d35ed418613676f3be86fd78869 (patch)
treeddfa6a5c4ba49eb33655a610d7d2de684cb0d7de /src/htscoremain.c
parent1e12f60120e2390ba93c83d906839fdcb38107f0 (diff)
Some cleanup in obviously wrong 15-year-old code.
Diffstat (limited to 'src/htscoremain.c')
-rw-r--r--src/htscoremain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c
index 80e9d92..b8cabe5 100644
--- a/src/htscoremain.c
+++ b/src/htscoremain.c
@@ -3069,10 +3069,10 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
if (((strchr(argv[i], ' ') != NULL)
|| (strchr(argv[i], '"') != NULL)
|| (strchr(argv[i], '\\') != NULL)) && (argv[i][0] != '"')) {
- int j;
+ size_t j;
fprintf(fp, "\"");
- for(j = 0; j < (int) strlen(argv[i]); j++) {
+ for(j = 0; argv[i][j] != '\0'; j++) {
if (argv[i][j] == 34)
fprintf(fp, "\\\"");
else if (argv[i][j] == '\\')