aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-08-27 22:16:11 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-08-27 22:16:11 +0000
commitac1d4ed85b003752bcfe8eb1375eec0817bb0838 (patch)
treea8e446d479694f6b00de778d799d798674c643ea
parentab576dfc8a0ddad6ce8800f5cacfbe5b21cce087 (diff)
downloadfetchmail-ac1d4ed85b003752bcfe8eb1375eec0817bb0838.tar.gz
fetchmail-ac1d4ed85b003752bcfe8eb1375eec0817bb0838.tar.bz2
fetchmail-ac1d4ed85b003752bcfe8eb1375eec0817bb0838.zip
Fix --with-gssapi compilation problem. Patch by Simon Josefsson.
svn path=/trunk/; revision=4267
-rw-r--r--NEWS1
-rw-r--r--gssapi.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2368dcbd..c53f36f5 100644
--- a/NEWS
+++ b/NEWS
@@ -172,6 +172,7 @@ fetchmail 6.3.0 (not yet released officially):
wait for the user to enter a password when the user doesn't even see
the prompt. Reported by Michal Marek. Matthias Andree.
* Write RFC-compliant BSMTP envelopes. Reported by Nico Golde. Matthias Andree.
+* Fix --with-gssapi compilation problem. Simon Josefsson. (MA)
# INTERNAL CHANGES
* Switched to automake. Matthias Andree.
diff --git a/gssapi.c b/gssapi.c
index 654b82c7..a0d3c61e 100644
--- a/gssapi.c
+++ b/gssapi.c
@@ -174,7 +174,7 @@ int do_gssauth(int sock, char *command, char *service, char *hostname, char *use
buf_size = htonl(buf_size); /* do as they do... only matters if we do enc */
memcpy(buf1, &buf_size, 4);
buf1[0] = GSSAUTH_P_NONE;
- strlcpy(buf1+4, username, sizeof(buf) - 4); /* server decides if princ is user */
+ strlcpy(buf1+4, username, sizeof(buf1) - 4); /* server decides if princ is user */
request_buf.length = 4 + strlen(username) + 1;
request_buf.value = buf1;
maj_stat = gss_wrap(&min_stat, context, 0, GSS_C_QOP_DEFAULT, &request_buf,