http://bugs.winehq.org/show_bug.cgi?id=34211 Bug #: 34211 Summary: strncpy C library function doesn't compliant C standard. Product: Wine Version: 1.7.0 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs(a)winehq.org ReportedBy: alvaro.nieto(a)gmail.com Classification: Unclassified Created attachment 45514 --> http://bugs.winehq.org/attachment.cgi?id=45514 Program that shows the bug and patch that solves it
From standard;
"If the array pointed to by s2 is a string that is shorter than n bytes, null bytes shall be appended to the copy in the array pointed to by s1,until n bytes in all are written" The attached code doesn't prints anything in Windows and Linux but prints in wine because wine's strncpy doesn't append null bytes. Also I've included a patch that solves the problem. -- 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.