diff options
| author | Greg Hudson <ghudson@mit.edu> | 2008-11-05 16:09:22 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2008-11-05 16:09:22 +0000 |
| commit | 6566763d0c306ad4dca003f2c4b9dd354d3d14fb (patch) | |
| tree | a63b92162310b25a293ed665f28cc7e1fadf7386 /src/plugins/authdata | |
| parent | 5a73a3b9774075842e605ec5690fa52c358fa0a5 (diff) | |
| download | krb5-6566763d0c306ad4dca003f2c4b9dd354d3d14fb.tar.gz krb5-6566763d0c306ad4dca003f2c4b9dd354d3d14fb.tar.xz krb5-6566763d0c306ad4dca003f2c4b9dd354d3d14fb.zip | |
Replace strcpy/strcat/sprintf uses in a couple of sample code files
with strncpy/strncat. Since this is sample code, we can't rely on
build system support for asprintf/strlcpy/strlcat.
ticket: 6200
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21000 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/plugins/authdata')
| -rw-r--r-- | src/plugins/authdata/greet/greet_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/authdata/greet/greet_auth.c b/src/plugins/authdata/greet/greet_auth.c index a9d359eaa..f7b6dd733 100644 --- a/src/plugins/authdata/greet/greet_auth.c +++ b/src/plugins/authdata/greet/greet_auth.c @@ -65,7 +65,7 @@ greet_authdata(krb5_context ctx, krb5_db_entry *client, free(a); return ENOMEM; } - strcpy(p, "hello there"); + strncpy(p, "hello there", GREET_SIZE-1); a->magic = KV5M_AUTHDATA; a->ad_type = -42; a->length = GREET_SIZE; |
