summaryrefslogtreecommitdiff
path: root/src/htsparse.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-29 08:20:07 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-29 08:20:07 +0000
commitae6d05fbb30ca8c0370b2be8cc1810b028616830 (patch)
tree0b7a239bbf51f74348f52a2281020cae5e2d2575 /src/htsparse.c
parent803f7b5a33c74ced027f3a171a6a7966206d4e1d (diff)
Allocation cleanup (why "+2", why ?)
Diffstat (limited to 'src/htsparse.c')
-rw-r--r--src/htsparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htsparse.c b/src/htsparse.c
index 1e431b4..032af7c 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -2098,7 +2098,7 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) {
while((lien[0] == '.') && (lien[1] == '/')) {
char BIGSTK tempo[HTS_URLMAXSIZE * 2];
- strcpybuff(tempo, lien + 2);
+ strcpybuff(tempo, lien + 1);
strcpybuff(lien, tempo);
}
if (strnotempty(lien) == 0) // sauf si plus de nom de fichier