disp_major_status.c (display_unknown): Fix the length of the buffer to
authorTheodore Tso <tytso@mit.edu>
Fri, 26 Mar 1999 03:42:40 +0000 (03:42 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 26 Mar 1999 03:42:40 +0000 (03:42 +0000)
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

src/lib/gssapi/generic/ChangeLog
src/lib/gssapi/generic/disp_major_status.c

index d5b75a5735646415827f28e18153c3260d2cffe6..ef41d06a23f50635c9fddcb72da4ff4ba2ae9210 100644 (file)
@@ -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
index 899592ada1302b7230cdf47d49d99f89ccf40788..e2df893e1342ace808492864ddb4e35f90cc3dbc 100644 (file)
@@ -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);