shithub: riscv

Download patch

ref: 987d15e7b255881f704866ea54f7281c16bbe31e
parent: 023882f0a416671dac2a84b3c821e2475ac0f67d
author: qwx <[email protected]>
date: Sun Oct 31 18:48:20 EDT 2021

tinc: fix typo in unknown host error message

--- a/sys/src/cmd/ip/tinc.c
+++ b/sys/src/cmd/ip/tinc.c
@@ -1669,7 +1669,7 @@
 
 	for(i = 0; i < argc; i++){
 		if((h = gethost(argv[i], 0)) == nil)
-			sysfatal("unknown host: %s", *argv);
+			sysfatal("unknown host: %s", argv[i]);
 		if(h == myhost)
 			sysfatal("will not connect to myself");
 		if(h->rsapub == nil)