diff --git a/NT/tools/sprshd b/NT/tools/sprshd
index ae6a177c9d27932b78e09e3c493119783741c759..2f970808d951308b9d3c8007f086aad21a49cf3e 100755
--- a/NT/tools/sprshd
+++ b/NT/tools/sprshd
@@ -64,7 +64,7 @@ void handle_incoming_connection(object(Stdio.File) io)
 
 int main(int argc, string *argv)
 {
-  if(c<2)
+  if(argc<2)
   {
     werror("Usage: sprshd <port> <host to accept connections from>\n");
     exit(1);