front
cinap_lenrek 2019-12-11 23:53:10 +01:00
commit 80ecdec0ec
1 changed files with 3 additions and 2 deletions

View File

@ -913,7 +913,8 @@ writebintime(char *buf, int n)
vlong delta; vlong delta;
long period; long period;
n--; if(--n <= 0)
error(Ebadtimectl);
p = (uchar*)buf + 1; p = (uchar*)buf + 1;
switch(*buf){ switch(*buf){
case 'n': case 'n':
@ -938,7 +939,7 @@ writebintime(char *buf, int n)
todsetfreq(fasthz); todsetfreq(fasthz);
break; break;
} }
return n; return n+1;
} }
void void