summaryrefslogtreecommitdiff
path: root/pith/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/conf.c')
-rw-r--r--pith/conf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pith/conf.c b/pith/conf.c
index 1b216d3a..4bc9481b 100644
--- a/pith/conf.c
+++ b/pith/conf.c
@@ -5935,11 +5935,11 @@ write_pinerc(struct pine *ps, EditWhich which, int flags)
if(basep == NULL){
*basep = '\0';
slpath = (char *) fs_get((strlen(filename) + strlen(slink) + 2)*sizeof(char));
- sprintf(slpath, "%s/%s", filename, slink);
+ snprintf(slpath, sizeof(slpath), "%s/%s", filename, slink);
*basep = '/';
} else {
slpath = (char *) fs_get((strlen(ps_global->home_dir) + strlen(slink) + 2)*sizeof(char));
- sprintf(slpath, "%s/%s", ps_global->home_dir, slink);
+ snprintf(slpath, sizeof(slpath), "%s/%s", ps_global->home_dir, slink);
}
}
file_attrib_copy(tmp, slpath);
@@ -5964,6 +5964,7 @@ write_pinerc(struct pine *ps, EditWhich which, int flags)
char datebuf[200];
datebuf[0] = '\0';
+ we_cancel = 0;
if(!(flags & WRP_NOUSER))
we_cancel = busy_cue(_("Copying to remote config"), NULL, 1);