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

Arnaud Quette aquette.dev at gmail.com
Thu May 3 11:07:15 UTC 2012


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



More information about the Nut-upsdev mailing list