summaryrefslogtreecommitdiff
path: root/chess-network.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-network.el')
-rw-r--r--chess-network.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/chess-network.el b/chess-network.el
index 143e758..ea181fc 100644
--- a/chess-network.el
+++ b/chess-network.el
@@ -120,7 +120,8 @@
(if (fboundp 'open-network-stream-server)
(open-network-stream-server "*chess-network*"
(current-buffer)
- (read-string "Port: "))
+ (string-to-int
+ (read-string "Port: ")))
(start-process "*chess-network*"
(current-buffer) "/usr/bin/nc"
"-l" "-p" (read-string "Port: ")))