X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=application-src%2Famstar.c;h=c20832140dfc29e0fe60eeb79788af498e0e418c;hb=refs%2Fheads%2Fmaster;hp=0959a1619b0ffeca8867ce88b21eee0954416a1f;hpb=c6f0a88c567f8536c498f554285aed1f8150da18;p=debian%2Famanda diff --git a/application-src/amstar.c b/application-src/amstar.c index 0959a16..c208321 100644 --- a/application-src/amstar.c +++ b/application-src/amstar.c @@ -1,6 +1,7 @@ /* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1998 University of Maryland at College Park + * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -758,7 +759,7 @@ amstar_backup( if (regexec(®ex_dir, line, 3, regmatch, 0) == 0) { if (argument->dle.create_index && regmatch[1].rm_so == 2) { - line[regmatch[1].rm_eo+1]='\0'; + line[regmatch[1].rm_eo]='\0'; fprintf(indexstream, "/%s\n", &line[regmatch[1].rm_so]); } continue;