summaryrefslogtreecommitdiffstats
path: root/src/util/ss/help.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2008-10-20 18:18:49 +0000
committerGreg Hudson <ghudson@mit.edu>2008-10-20 18:18:49 +0000
commite4a2f122c3086c1179323c0e24edb3506d3f4758 (patch)
tree310614d952144eaba5f2e0a1aec7f86af40862de /src/util/ss/help.c
parent4c6801514e9ee5e6459780d37bc4a83429dd4746 (diff)
downloadkrb5-e4a2f122c3086c1179323c0e24edb3506d3f4758.tar.gz
krb5-e4a2f122c3086c1179323c0e24edb3506d3f4758.tar.xz
krb5-e4a2f122c3086c1179323c0e24edb3506d3f4758.zip
Use strdup in place of malloc/strcpy in many places
ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20898 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/ss/help.c')
-rw-r--r--src/util/ss/help.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/ss/help.c b/src/util/ss/help.c
index b144e282e..10b1c1075 100644
--- a/src/util/ss/help.c
+++ b/src/util/ss/help.c
@@ -128,8 +128,7 @@ void ss_add_info_dir(sci_idx, info_dir, code_ptr)
}
info->info_dirs = dirs;
dirs[n_dirs + 1] = (char *)NULL;
- dirs[n_dirs] = malloc((unsigned)strlen(info_dir)+1);
- strcpy(dirs[n_dirs], info_dir);
+ dirs[n_dirs] = strdup(info_dir);
*code_ptr = 0;
}