[Nut-upsdev] [nut-commits] svn commit r3554 - branches/windows_port/common

Arnaud Quette aquette.dev at gmail.com
Thu May 3 11:04:05 UTC 2012


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



More information about the Nut-upsdev mailing list