aboutsummaryrefslogtreecommitdiffstats
path: root/psplash.c
diff options
context:
space:
mode:
Diffstat (limited to 'psplash.c')
-rw-r--r--psplash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/psplash.c b/psplash.c
index 7964cfb..3d79e8e 100644
--- a/psplash.c
+++ b/psplash.c
@@ -197,12 +197,14 @@ main (int argc, char** argv)
if (!strcmp(argv[i],"-a") || !strcmp(argv[i],"--angle"))
{
if (++i > argc) goto fail;
- angle = atoi(argv[0]);
+ angle = atoi(argv[i]);
continue;
}
fail:
- fprintf(stderr, "Usage: %s [-n|--no-console-switch] [-a|--angle <0|90|180|270>]\n", argv[0]);
+ fprintf(stderr,
+ "Usage: %s [-n|--no-console-switch] [-a|--angle <0|90|180|270>]\n",
+ argv[0]);
exit(-1);
}