]> git.pld-linux.org Git - packages/lynx.git/blob - lynx-overflow.patch
- changed %%{!?debug:...}%%{?debug...} to %%{?debug:...}%%{!?debug...}
[packages/lynx.git] / lynx-overflow.patch
1 diff -Nru lynx2-8-3.orig/src/LYMail.c lynx2-8-3/src/LYMail.c
2 --- lynx2-8-3.orig/src/LYMail.c Fri May  5 00:43:18 2000
3 +++ lynx2-8-3/src/LYMail.c      Fri May  5 00:45:15 2000
4 @@ -392,7 +392,7 @@
5       * entry, if permitted. - FM
6       */
7      if (!LYNoCc) {
8 -       sprintf(self, "%.79s", (personal_mail_address ?
9 +       snprintf(self, 80, "%.79s", (personal_mail_address ?
10                                 personal_mail_address : ""));
11         self[79] = '\0';
12         _statusline("Cc: ");
13 @@ -1557,7 +1557,7 @@
14      addstr(CTRL_U_TO_ERASE);
15      addstr(SUBJECT_PROMPT);
16      /* Add the default subject. */
17 -    sprintf(user_input, "%.70s%.63s",
18 +    snprintf(user_input, sizeof(user_input), "%.70s%.63s",
19                         (subject[0] != '\0') ?
20                                      subject :
21                     ((filename && *filename) ?
This page took 0.031878 seconds and 3 git commands to generate.