summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2011-04-21 21:03:25 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2011-04-21 21:05:36 +0200
commit9322eca5d95353757f3b7b47f67054ddb7b14369 (patch)
treea21d7ae0e2500d5a9ef592adecd1b70497b626c3
parent47dd9a4d7b2930f6e1b5d6f0ce0c154efc87ac29 (diff)
downloadopenvpn-9322eca5d95353757f3b7b47f67054ddb7b14369.tar.gz
openvpn-9322eca5d95353757f3b7b47f67054ddb7b14369.tar.xz
openvpn-9322eca5d95353757f3b7b47f67054ddb7b14369.zip
Add a simple comment regarding openvpn_snprintf() is duplicated
Commit df5a4380c3931520d5fae2b18f0fc2e67a883aae copies this function from buffer.c to service-win32/openvpnserv.c. Any changes on either places should be done in both implementations. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> (cherry picked from commit 14708eb69e377ae7edcbbdbd2842bcfbc43fb84a)
-rw-r--r--buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index 947df90..e0a9a96 100644
--- a/buffer.c
+++ b/buffer.c
@@ -217,6 +217,9 @@ buf_printf (struct buffer *buf, const char *format, ...)
/*
* This is necessary due to certain buggy implementations of snprintf,
* that don't guarantee null termination for size > 0.
+ *
+ * This function is duplicated into service-win32/openvpnserv.c
+ * Any modifications here should be done to the other place as well.
*/
int openvpn_snprintf(char *str, size_t size, const char *format, ...)