]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Add a simple comment regarding openvpn_snprintf() is duplicated
authorDavid Sommerseth <dazo@users.sourceforge.net>
Thu, 21 Apr 2011 19:03:25 +0000 (21:03 +0200)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Thu, 21 Apr 2011 19:03:25 +0000 (21:03 +0200)
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>
buffer.c

index e2f8caab0a5b2a870092c6cd508a1a50c21c3ba3..3fa0cd3922dc4e526f5fa35a9bb15b6160e4ff6c 100644 (file)
--- 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, ...)