minit

A small yet feature-complete init (http://fefe.de/minit/)
Log | Files | Refs | README | LICENSE

commit 458056f37992ec1d7c8d10f50c4c16e2f04a7620
parent bdd936d21b24de89c5cdc058025597116f830d17
Author: leitner <leitner>
Date:   Mon, 27 Oct 2014 12:55:02 +0000

fix the case with a full path in the filename

Diffstat:
Mftrigger.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftrigger.c b/ftrigger.c @@ -59,7 +59,7 @@ int main(int argc,char* argv[]) { size_t m=c-root[n].filename; strcpy(root[n].dironly,root[n].filename); root[n].fileonly=root[n].dironly+m+1; - *c=0; + root[n].fileonly[-1]=0; } else { root[n].dironly[0]='.'; root[n].dironly[1]=0;