header_del_len = len * 3;
header_del = xmalloc (header_del_len + 1);
- strcat (strcat (strcpy (header_del, section_del), section_del), section_del);
+ stpcpy (stpcpy (stpcpy (header_del, section_del), section_del), section_del);
body_del_len = len * 2;
body_del = xmalloc (body_del_len + 1);
- strcat (strcpy (body_del, section_del), section_del);
+ stpcpy (stpcpy (body_del, section_del), section_del);
footer_del_len = len;
footer_del = xmalloc (footer_del_len + 1);
- strcpy (footer_del, section_del);
+ stpcpy (footer_del, section_del);
/* Initialize the input buffer. */
initbuffer (&line_buf);
char buf[1024];
const char *const baseproject = "/.project";
char *const project =
- xmalloc (strlen (pw->pw_dir) + strlen (baseproject) + 1);
-
- strcpy (project, pw->pw_dir);
- strcat (project, baseproject);
+ xmalloc (strlen (pw->pw_dir) + strlen (baseproject) + 1);
+ stpcpy (stpcpy (project, pw->pw_dir), baseproject);
stream = fopen (project, "r");
if (stream)
char buf[1024];
const char *const baseplan = "/.plan";
char *const plan =
- xmalloc (strlen (pw->pw_dir) + strlen (baseplan) + 1);
-
- strcpy (plan, pw->pw_dir);
- strcat (plan, baseplan);
+ xmalloc (strlen (pw->pw_dir) + strlen (baseplan) + 1);
+ stpcpy (stpcpy (plan, pw->pw_dir), baseplan);
stream = fopen (plan, "r");
if (stream)