diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2011-04-21 20:32:26 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2011-04-21 20:53:38 +0200 |
commit | 47dd9a4d7b2930f6e1b5d6f0ce0c154efc87ac29 (patch) | |
tree | 63f49acf1c0acbe69bfe3d9fa49ada80e8117879 /init.c | |
parent | Fixed a bug with GUI icon deletion on upgrade from 2.2-RC or earlier (diff) | |
download | openvpn-47dd9a4d7b2930f6e1b5d6f0ce0c154efc87ac29.tar.xz |
Improve the mysprintf() issue in openvpnserv.c
A quick and dirty compile fix was introduced in commit 77d244050964525417,
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 df5a4380c3931520d5fae2b18f0fc2e67a883aae)
Diffstat (limited to 'init.c')
0 files changed, 0 insertions, 0 deletions