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/lib/kadm5 | |
| 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/lib/kadm5')
| -rw-r--r-- | src/lib/kadm5/alt_prof.c | 2 | ||||
| -rw-r--r-- | src/lib/kadm5/str_conv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/kadm5/alt_prof.c b/src/lib/kadm5/alt_prof.c index 8fa742c2e..b6d8bdc14 100644 --- a/src/lib/kadm5/alt_prof.c +++ b/src/lib/kadm5/alt_prof.c @@ -92,7 +92,7 @@ krb5_aprof_init(fname, envname, acontextp) krb5int_buf_add(&buf, filenames[i]); } krb5_free_config_files(filenames); - profile_path = krb5int_buf_cstr(&buf); + profile_path = krb5int_buf_data(&buf); if (profile_path == NULL) return ENOMEM; profile = (profile_t) NULL; diff --git a/src/lib/kadm5/str_conv.c b/src/lib/kadm5/str_conv.c index 7ffcc8e11..c35d51521 100644 --- a/src/lib/kadm5/str_conv.c +++ b/src/lib/kadm5/str_conv.c @@ -188,7 +188,7 @@ krb5_flags_to_string(flags, sep, buffer, buflen) pflags |= flags_table[i].fl_flags; } } - if (krb5int_buf_cstr(&buf) == NULL) + if (krb5int_buf_data(&buf) == NULL) return(ENOMEM); /* See if there's any leftovers */ |
