commit 4c4e0cf470bf8cf85f773e828370777032796484
parent 884b7cb6990ea6f568b98ea4cd534d9239ea3789
Author: Remy Noulin <loader2x@gmail.com>
Date: Fri, 21 Apr 2023 08:58:38 +0200
set correct path when current path doesn't have any slash
sparline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sparline.c b/sparline.c
@@ -591,7 +591,7 @@ int main(int ac, char **av){
}
}
// no slash found in history path
- asprintf(&path, "/%s", sliceLast(&history).path, p);
+ asprintf(&path, "/%s", p);
}
else
// add path to previous path