summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1999-03-26 03:42:40 +0000
committerTheodore Tso <tytso@mit.edu>1999-03-26 03:42:40 +0000
commit3306315dc3f42a0794d7887232a6e49893a567e6 (patch)
tree2164936ecff323cfa99e2992c36b91fb66cecf5a /src/lib/gssapi
parentf79a8ef264e17c74001d358f766fbe88b6a9aab5 (diff)
downloadkrb5-3306315dc3f42a0794d7887232a6e49893a567e6.tar.gz
krb5-3306315dc3f42a0794d7887232a6e49893a567e6.tar.xz
krb5-3306315dc3f42a0794d7887232a6e49893a567e6.zip
disp_major_status.c (display_unknown): Fix the length of the buffer to
be the size of the returned string, instead of something bigger than the returned string. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11314 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi')
-rw-r--r--src/lib/gssapi/generic/ChangeLog6
-rw-r--r--src/lib/gssapi/generic/disp_major_status.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog
index d5b75a573..ef41d06a2 100644
--- a/src/lib/gssapi/generic/ChangeLog
+++ b/src/lib/gssapi/generic/ChangeLog
@@ -1,3 +1,9 @@
+Thu Mar 25 22:41:30 1999 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * disp_major_status.c (display_unknown): Fix the length of the
+ buffer to be the size of the returned string, instead of
+ something bigger than the returned string.
+
1999-02-19 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in (DLL_FILE_DEF): Tell the Makefile template that we
diff --git a/src/lib/gssapi/generic/disp_major_status.c b/src/lib/gssapi/generic/disp_major_status.c
index 899592ada..e2df893e1 100644
--- a/src/lib/gssapi/generic/disp_major_status.c
+++ b/src/lib/gssapi/generic/disp_major_status.c
@@ -121,7 +121,7 @@ int display_unknown(kind, value, buffer)
sprintf(str, unknown_error, kind, value);
- buffer->length = len;
+ buffer->length = strlen(str);
buffer->value = str;
return(1);