2006-12-22 Matthew Allum <mallum@openedhand.com>
authorMatthew Allum <mallum@openedhand.com>
Fri, 22 Dec 2006 17:01:03 +0000 (17:01 +0000)
committerMatthew Allum <mallum@openedhand.com>
Fri, 22 Dec 2006 17:01:03 +0000 (17:01 +0000)
        * psplash.c:
        Whoops, actually set the angle config option

ChangeLog
psplash.c

index 325b12f..088fe78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-12-22  Matthew Allum  <mallum@openedhand.com>
 
+       * psplash.c:
+       Whoops, actually set the angle config option
+
+2006-12-22  Matthew Allum  <mallum@openedhand.com>
+
        * psplash-fb.c:
        * psplash-fb.h:
        * psplash.c:
index 7964cfb..3d79e8e 100644 (file)
--- 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);
     }