sorry, it was a private answer directed to Fred (thus in French) please disregard the below mail.
Arno 2012/5/3 Arnaud Quette <[email protected]>: > c'est quoi cette chelouzerie ? > je parle de l'ajout du sizeof(DWORD)... > > et ce que ce serait pas un str*n*cpy ou s*n*printf la vraie solution ? > > Arno > > 2012/5/3 Frederic BOHE <[email protected]>: >> Author: fbohe-guest >> Date: Thu May 3 08:31:38 2012 >> New Revision: 3554 >> URL: http://trac.networkupstools.org/projects/nut/changeset/3554 >> >> Log: >> Fix journal event truncation. >> >> Modified: >> branches/windows_port/common/wincompat.c >> >> Modified: branches/windows_port/common/wincompat.c >> ============================================================================== >> --- branches/windows_port/common/wincompat.c Wed May 2 22:11:49 2012 >> (r3553) >> +++ branches/windows_port/common/wincompat.c Thu May 3 08:31:38 2012 >> (r3554) >> @@ -212,7 +212,7 @@ >> of chars containing the message to display (no terminal 0 required here) >> */ >> void syslog(int priority, const char *fmt, ...) >> { >> - char buf1[LARGEBUF]; >> + char buf1[LARGEBUF+sizeof(DWORD)]; >> char buf2[LARGEBUF]; >> va_list ap; >> HANDLE pipe; >> >> _______________________________________________ >> nut-commits mailing list >> [email protected] >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-commits _______________________________________________ Nut-upsdev mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev
