projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3c9d3f
)
name is now const
author
John Kohl
<jtkohl@mit.edu>
Tue, 27 Nov 1990 11:23:18 +0000
(11:23 +0000)
committer
John Kohl
<jtkohl@mit.edu>
Tue, 27 Nov 1990 11:23:18 +0000
(11:23 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1497
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/keytab/ktbase.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/keytab/ktbase.c
b/src/lib/krb5/keytab/ktbase.c
index 9edfec7f52db11f27712faebb63fc91271ac70c4..589ee1322fbbbbcbd3c95dd928eb42d70702fbca 100644
(file)
--- a/
src/lib/krb5/keytab/ktbase.c
+++ b/
src/lib/krb5/keytab/ktbase.c
@@
-61,7
+61,7
@@
krb5_kt_ops *ops;
*/
krb5_error_code krb5_kt_resolve (name, ktid)
- char *name;
+ c
onst c
har *name;
krb5_keytab *ktid;
{
struct krb5_kt_typelist *tlist;
@@
-72,8
+72,8
@@
krb5_error_code krb5_kt_resolve (name, ktid)
if (!cp)
return KRB5_KT_BADNAME;
- pfxlen = cp - name;
- resid = name + pfxlen + 1;
+ pfxlen = cp -
(char *)
name;
+ resid =
(char *)
name + pfxlen + 1;
pfx = malloc (pfxlen+1);
if (!pfx)