[Qt-interest] bug Qt 4.6-stable in qstrncpy

Sylvain Pointeau sylvain.pointeau at gmail.com
Mon Oct 12 20:22:24 CEST 2009


... what do you mean?
did you understand me?
Cheers,
Sylvain

2009/10/12 书名 <zhzlfe at foxmail.com>

> >"Copies at most len bytes from src"
> >-> then I understand you copy len bytes from the src to the dest, right?
> >>>stopping at len or the terminating '\0' whichever comes first.
> "stopping at len ", exclude “len”.
>
> "Guarantees that dst is '\0'-terminated"&&"This function assumes that dst
> is at least len characters long."
> ->
>     {
>         if (len > 0)
>
>        dst[len-1] = '\0';
>    }
> clear sample.
> ------------------
> LAG
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091012/90bc6e80/attachment.html 


More information about the Qt-interest-old mailing list