Surf now parses hex window ids properly from tabbed.
authorChristoph Lohmann <20h@r-36.net>
Mon, 16 Jul 2012 14:35:47 +0000 (16:35 +0200)
committerChristoph Lohmann <20h@r-36.net>
Mon, 16 Jul 2012 14:35:47 +0000 (16:35 +0200)
surf.c

diff --git a/surf.c b/surf.c
index f7cba3e..48a691a 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -857,7 +857,7 @@ main(int argc, char *argv[]) {
                switch(argv[i][1]) {
                case 'e':
                        if(++i < argc)
-                               embed = atoi(argv[i]);
+                               embed = strtol(argv[i], NULL, 0);
                        else
                                usage();
                        break;