ref: 80b18900935f45afa1ec4c887ffa0ceb21fa0231
parent: cb8ef42b5579155a34fd7672c867a9e06e2983dd
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 24 22:52:05 EST 2019
ip/ppp: fix %.*s format in debug print
--- a/sys/src/cmd/ip/ppp/ppp.c
+++ b/sys/src/cmd/ip/ppp/ppp.c
@@ -2269,7 +2269,7 @@
&& ppp->chap->proto == APpasswd
&& m->id <= ppp-> chap->id){
netlog("ppp: pap failed (%d:%.*s)\n",
- m->data[0], m->data[0], (char*)m->data+1);
+ m->data[0], utfnlen((char*)m->data+1, m->data[0]), (char*)m->data+1);
terminate(ppp, 0);
}
break;