0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-19 19:42:30 +02:00
openvpn/service-win32
David Sommerseth 47dd9a4d7b Improve the mysprintf() issue in openvpnserv.c
A quick and dirty compile fix was introduced in commit 77d2440509,
and was accepted under the condition that it would be a temporary fix.

As the usage of _snprintf() is realy not ideal on Windows, this patch
uses the same well tested openvpn_snprintf() function from buffer.c.
It was a longer discussion of several possibilities to re-use that code,
but in the end it seemed easier to just copy-paste this function to
openvpnserv.c for now.

The reason for this conclusion was that the function is really simple,
well defined and will most likely not be changed much in the future.
It is also added a comment in openvpnserv.c where this function
has its origins.

Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: James Yonan <james@openvpn.net>
(cherry picked from commit df5a4380c3)
2011-04-21 20:53:38 +02:00
..
.svnignore Modified .svnignore to only ignore files generated 2008-05-24 19:05:59 +00:00
Makefile.am Updated copyright date to 2010. 2010-04-28 16:31:36 +00:00
msvc.mak Added a nmake makefile for openvpnserv.exe building 2011-02-27 00:55:22 +01:00
openvpnserv.c Improve the mysprintf() issue in openvpnserv.c 2011-04-21 20:53:38 +02:00
service.c Windows security issue: 2010-08-15 21:53:00 +00:00
service.h Moved branch into official BETA21 position. 2008-05-12 20:31:43 +00:00