Arnaud Quette
2012-May-03 11:04 UTC
[Nut-upsdev] [nut-commits] svn commit r3554 - branches/windows_port/common
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 <fbohe-guest at alioth.debian.org>:> 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 > nut-commits at lists.alioth.debian.org > 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
Arnaud Quette
2012-May-03 11:07 UTC
[Nut-upsdev] [nut-commits] svn commit r3554 - branches/windows_port/common
sorry, it was a private answer directed to Fred (thus in French) please disregard the below mail. Arno 2012/5/3 Arnaud Quette <aquette.dev at gmail.com>:> 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 <fbohe-guest at alioth.debian.org>: >> 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 >> nut-commits at lists.alioth.debian.org >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-commits
Apparently Analagous Threads
- [nut-commits] svn commit r2853 - in branches/windows_port: drivers include
- [nut-commits] svn commit r2839 - branches/windows_port/scripts/Windows
- cross-compiling the windows_port branch (socklen_t)
- [nut-commits] svn commit r2705 - branches/windows_port/drivers
- [nut-commits] svn commit r2940 - in branches/windows_port/scripts/Windows/Installer