summaryrefslogtreecommitdiff
path: root/alpine/remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'alpine/remote.c')
-rw-r--r--alpine/remote.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/alpine/remote.c b/alpine/remote.c
index 7d83b3e1..685d3c34 100644
--- a/alpine/remote.c
+++ b/alpine/remote.c
@@ -1,11 +1,7 @@
-#if !defined(lint) && !defined(DOS)
-static char rcsid[] = "$Id: remote.c 1032 2008-04-11 00:30:04Z hubert@u.washington.edu $";
-#endif
-
/*
* ========================================================================
* Copyright 2006-2008 University of Washington
- * Copyright 2013-2021 Eduardo Chappa
+ * Copyright 2013-2022 Eduardo Chappa
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,7 +35,7 @@ int rd_answer_forge_warning(int, MSGNO_S *, SCROLL_S *);
int
rd_prompt_about_forged_remote_data(int reason, REMDATA_S *rd, char *extra)
{
- char tmp[2000];
+ char *p, tmp[2000];
char *unknown = "<unknown>";
int rv = -1;
char *foldertype, *foldername, *special;
@@ -47,6 +43,8 @@ rd_prompt_about_forged_remote_data(int reason, REMDATA_S *rd, char *extra)
foldertype = (rd && rd->t.i.special_hdr && !strucmp(rd->t.i.special_hdr, REMOTE_ABOOK_SUBTYPE)) ? "address book" : (rd && rd->t.i.special_hdr && !strucmp(rd->t.i.special_hdr, REMOTE_PINERC_SUBTYPE)) ? "configuration" : "data";
foldername = (rd && rd->rn) ? rd->rn : unknown;
special = (rd && rd->t.i.special_hdr) ? rd->t.i.special_hdr : unknown;
+ tmp[0] = '\0';
+ p = tmp;
dprint((1, "rd_check_out_forged_remote_data:\n"));
dprint((1, " reason=%d\n", reason));
@@ -177,8 +175,6 @@ rd_prompt_about_forged_remote_data(int reason, REMDATA_S *rd, char *extra)
free_handles(&handles);
}
else{
- char *p = tmp;
-
snprintf(p, sizeof(tmp), _("\nThe data in the remote %s folder\n\n %s\n\nlooks suspicious. The reason for the suspicion is\n\n "),
foldertype, foldername);
tmp[sizeof(tmp)-1] = '\0';