db-move: moved libdmapsharing from [testing] to [extra] (x86_64)
[arch-packages.git] / vi / repos / core-x86_64 / format-security.patch
blob3676bae1ba2e0391dc4d3e713daf344fc1904313
1 diff --git a/ex_unix.c b/ex_unix.c
2 index 4ad17f9..80815d1 100644
3 --- a/ex_unix.c
4 +++ b/ex_unix.c
5 @@ -179,7 +179,7 @@ uexp:
6 if (warn && hush == 0 && chng && xchng != chng && value(WARN) && dol > zero) {
7 xchng = chng;
8 vnfl();
9 - printf(mesg(catgets(catd, 1, 197,
10 + printf("%s", mesg(catgets(catd, 1, 197,
11 "[No write]|[No write since last change]")));
12 noonl();
13 flush();
14 diff --git a/ex_vops2.c b/ex_vops2.c
15 index 48050ff..e59727a 100644
16 --- a/ex_vops2.c
17 +++ b/ex_vops2.c
18 @@ -211,7 +211,7 @@ showmode(int mode)
19 if (value(TERSE))
20 putchar(str[0]);
21 else
22 - printf(&str[1]);
23 + printf("%s", &str[1]);
24 vgoto(sdl, sdc);
25 cursor = ocurs;
26 splitw = 0;