summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--surf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index f7cba3e..48a691a 100644
--- 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;