<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8000001907349px">I still think there's a bug where the string can be unterminated.</span></blockquote><div><br></div><div>Do you mean the case where the number of characters written (no terminating `'\0'`) is the same as count? `<span style="font-size:12.8000001907349px">buffer[count-1] = '\0'` should handle that.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 7:31 AM, Adrian McCarthy <span dir="ltr"><<a href="mailto:amccarth@google.com" target="_blank">amccarth@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I still think there's a bug where the string can be unterminated.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10048&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=MEqT8U_n7oNfuDW5NRbY3ZV384ZquXIYFPWmprwUdKM&m=l7xiVGUNH1o75BZ005sjF1gU3jDl9taEOt_ikc6_y5c&s=Kf9bD-b_PIE_OUrpse1GurRiLB9J-_Lz1vYXq0VdvAg&e=" target="_blank">http://reviews.llvm.org/D10048</a><br>
<br>
EMAIL PREFERENCES<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_settings_panel_emailpreferences_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=MEqT8U_n7oNfuDW5NRbY3ZV384ZquXIYFPWmprwUdKM&m=l7xiVGUNH1o75BZ005sjF1gU3jDl9taEOt_ikc6_y5c&s=6M2ybvMNBRLEaPRsIzkfw9FdcDHzk149bsytJpJCSwA&e=" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>