[Bug 34211] strncpy C library function doesn't compliant C standard.

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Aug 5 18:46:46 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=34211

--- Comment #2 from Bruno Jesus <00cpxxx at gmail.com> 2013-08-05 18:46:46 CDT ---
>  for(i=0; i<sizeof(src); i++)
>  ...
>  for(i=sizeof(src)+1; i<len; i++)

I think you need strlen instead of sizeof, but IMO there seems to be an easier
way to do it.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list