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 -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/ -- Conseiller Municipal - Saint Bernard du Touvet _______________________________________________ Nut-upsdev mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev
