mirror of https://github.com/9wm/xss.git
Fix buffer overrun (thanks abrugh!)
This commit is contained in:
parent
b69bb4c0b4
commit
259ac57361
|
@ -107,6 +107,10 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (obuflen == sizeof(obuf)) {
|
||||||
|
(void)write(STDOUT_FILENO, obuf, obuflen);
|
||||||
|
obuflen = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue