diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:59:03 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:59:03 +0000 |
commit | 660b569b0980fc8f71b03ed666dd02eec8388b4c (patch) | |
tree | 8ad02b5f0bebdd4cd1d2ba01005d6f3f71a0a7fb /src/htsalias.c | |
parent | 64cc4a88da8887ef1f7f4d90be0158d2cc76222d (diff) |
httrack 3.41.2
Diffstat (limited to 'src/htsalias.c')
-rw-r--r-- | src/htsalias.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/htsalias.c b/src/htsalias.c index c6bfef4..5845837 100644 --- a/src/htsalias.c +++ b/src/htsalias.c @@ -66,7 +66,7 @@ void hts_lowcase(char* s); } \ argv[0]=(buff+ptr); \ strcpybuff(argv[0],token); \ - ptr += (strlen(argv[0])+1); \ + ptr += (int) (strlen(argv[0])+1); \ argc++ // END OF COPY OF cmdl_ins in htsmain.c @@ -172,6 +172,7 @@ const char* hts_optalias[][4] = { {"display","-%v","single","show files transfered and other funny realtime information"}, {"dos83","-L0","single",""}, {"iso9660","-L2","single",""}, + {"disable-module","-%w","param1",""}, /* */ /* DEPRECATED */ @@ -193,7 +194,7 @@ const char* hts_optalias[][4] = { {"advanced-maxlinks","-#L","single",""}, {"advanced-progressinfo","-#p","single","deprecated"}, {"catch-url","-#P","single","catch complex URL through proxy"}, - {"debug-oldftp","-#R","single",""}, + /*{"debug-oldftp","-#R","single",""},*/ {"debug-xfrstats","-#T","single",""}, {"advanced-wait","-#u","single",""}, {"debug-ratestats","-#Z","single",""}, @@ -544,11 +545,11 @@ char* hts_gethome(void) { } /* Convert ~/foo into /home/smith/foo */ -void expand_home(char* str) { - if (str[0] == '~') { +void expand_home(String *str) { + if (StringSub(*str, 1) == '~') { char BIGSTK tempo[HTS_URLMAXSIZE*2]; - strcpybuff(tempo,hts_gethome()); - strcatbuff(tempo,str+1); - strcpybuff(str,tempo); + strcpybuff(tempo, hts_gethome()); + strcatbuff(tempo, StringBuff(*str) + 1); + StringCopy(*str, tempo); } } |