diff options
| author | Greg Hudson <ghudson@mit.edu> | 2008-11-05 17:08:47 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2008-11-05 17:08:47 +0000 |
| commit | ddf60ba5e894ad339c96c6f61446dfc8cb79e779 (patch) | |
| tree | 7c422431eee6bfe27aa691c05f8a1741b8934397 /src/clients | |
| parent | 34bf3f538cc063b49fc9ac691d617522a7962e19 (diff) | |
Rename krb5int_buf_cstr to krb5int_buf_data, since k5bufs can be used
for binary data as well as C string data. The buffer will always have
a null byte at krb5int_buf_len bytes regardless of whether it contains
C string data.
ticket: 6200
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21003 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients')
| -rw-r--r-- | src/clients/ksu/authorization.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/ksu/authorization.c b/src/clients/ksu/authorization.c index 829251d81..fa596230b 100644 --- a/src/clients/ksu/authorization.c +++ b/src/clients/ksu/authorization.c @@ -515,7 +515,7 @@ krb5_boolean find_first_cmd_that_exists(fcmd_arr, cmd_out, err_out) for(j= 0; j < i; j ++) krb5int_buf_add_fmt(&buf, " %s ", fcmd_arr[j]); krb5int_buf_add(&buf, "\n"); - *err_out = krb5int_buf_cstr(&buf); + *err_out = krb5int_buf_data(&buf); if (*err_out == NULL) { perror(prog_name); exit(1); |
