How to use sprintf

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Apr 26 10:11:20 PDT 2011


On 4/26/11, Timon Gehr <timon.gehr at gmx.ch> wrote:
>> Isn't it dangerous to pass a D string and let the C code overwrite the
>> string, regardless of char* vs .ptr field?
>
> There is a possibility for buffer overflow.
>

No, I mean the C function will overwrite an immutable string.


More information about the Digitalmars-d mailing list