On Fri, 17 Oct 2014 16:08:04 +0000
Lucas Burson via Digitalmars-d-learn
<digitalmars-d-learn@puremagic.com> wrote:

> The buffer is populated from a scsi ioctl so it "should" be only 
> ascii and null-terminated but it's a good idea to harden the code 
> a bit.
> Thank you for your help!
i developed a habit of making such buffers one byte bigger than
necessary and just setting the last byte to 0 before converting. this
way it's guaranteed to be 0-terminated.

Attachment: signature.asc
Description: PGP signature

Reply via email to