]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/bitsy/prompter.c
git/branch: somewhere in the syncing, the fix for junk files was lost
[plan9front.git] / sys / src / cmd / bitsy / prompter.c
index df8e546f5269361b9e85dfea291383a5135b8b61..493a5f621e2a3423edcea41faf50b9ad858783dc 100644 (file)
@@ -279,7 +279,7 @@ threadmain(int argc, char *argv[])
                if(n == 3)
                if(strcmp(args[0], "keyboard:")==0 || strcmp(args[0], "scribble:")==0)
                if(strcmp(args[1], "value") == 0){
-                       n = atoi(args[2]);
+                       n = strtol(args[2], 0, 0);
                        if(n == '\033') /* Escape exits */
                                break;
                        if(n <= Runemax){