Browse Source

fix Windows installer breakage - wrong argument to va_start - use fmt instead of s

Rich Megginson 21 years ago
parent
commit
828fa4aa95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/cm/newinstnt/dsinst.c

+ 1 - 1
ldap/cm/newinstnt/dsinst.c

@@ -66,7 +66,7 @@ my_snprintf(char *s, size_t size, const char *fmt, ...)
 	int rc;
 	va_list ap;
 
-	va_start(ap, s);
+	va_start(ap, fmt);
 	rc = _vsnprintf(s, size, fmt, ap);
 	va_end(ap);
 	s[size-1] = (char)0;