small fix
authorAnselm R. Garbe <garbeam@gmail.com>
Sun, 19 Aug 2007 08:13:24 +0000 (10:13 +0200)
committerAnselm R. Garbe <garbeam@gmail.com>
Sun, 19 Aug 2007 08:13:24 +0000 (10:13 +0200)
layout.c

index aa3bff5..96e125a 100644 (file)
--- a/layout.c
+++ b/layout.c
@@ -122,7 +122,7 @@ loaddwmprops(void) {
                for(i = 0; i < ntags && i < sizeof prop - 1 && prop[i] != '\0'; i++)
                        seltags[i] = prop[i] == '1';
                if(i < sizeof prop - 1 && prop[i] != '\0') {
-                       i = prop[i] - '0';
+                       i = prop[i];
                        if(i < nlayouts)
                                ltidx = i;
                }