[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Windows installation package with GUI included


  • Subject: Re: [Openvpn-users] Windows installation package with GUI included
  • From: "Gisle Vanem" <giva@xxxxxxxxx>
  • Date: Thu, 8 Jul 2004 16:18:57 +0200

"Mathias Sundman" <mathias@xxxxxxxxxx> said:

> I've released a new version of OpenVPN GUI for Windows with some minor 
> changes, and at the same time I've built a new installation package with 
> OpenVPN 2.0-beta7 and OpenVPN GUI 1.0-beta7 bundled nicely.

Hi Mathias,

In openvpn.c you do this:

/* snprintf with guaranteed null termination */
#define mysnprintf(out, args...) \
        { \
           snprintf (out, sizeof(out), args); \
           out [sizeof (out) - 1] = '\0'; \
        }

Why? According to my MSDN snprintf() (or really _snprintf),
a null-termination is guaranteed in any case.

Besides var-arg macros doesn't work with Watcom or VC6.
(only gcc 2.8+?).

--gv

PS. Can't someone change the mailing-list settings so a
reply goes to the list and not to the person in the "From:".
Simply add a "Reply-To:" should do it I guess. It's a hassle
to remember to Reply-to-all in my mailer (Outlook Express).
Pressing Ctrl-R is an old habit.




____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users