diff --git a/examples/storyboard.c b/examples/storyboard.c index f11e13e..6d50b04 100644 --- a/examples/storyboard.c +++ b/examples/storyboard.c @@ -51,7 +51,7 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; parser = strrchr(argv[1], '/'); - strcpy(fmtstr, parser ? parser : argv[1]); + strcpy(fmtstr, parser ? parser + 1 : argv[1]); parser = strrchr(fmtstr, '.'); if(parser) *parser = '\0';