Nuke unnecessary setting of ural(4)'s security registers. ural(4) only
[dragonfly/vkernel-mp.git] / lib / libopie / readpass.c.patch
bloba8aa16fbba770d0ca9a87035fd173011523aa0d2
1 $DragonFly: src/lib/libopie/readpass.c.patch,v 1.1 2006/01/18 03:33:35 dillon Exp $
3 Index: contrib/opie/libopie/readpass.c
4 ===================================================================
5 RCS file: /cvs/src/contrib/opie/libopie/readpass.c,v
6 retrieving revision 1.1
7 diff -u -r1.1 readpass.c
8 --- readpass.c.orig 17 Jun 2003 02:46:16 -0000 1.1
9 +++ readpass.c 17 Jan 2006 23:22:00 -0000
10 @@ -61,7 +61,7 @@
12 #define CONTROL(x) (x - 64)
14 -char *bsseq = "\b \b";
15 +char bsseq[3] = { "\b \b" };
17 #ifdef unix
18 static jmp_buf jmpbuf;
19 @@ -252,7 +252,7 @@
20 goto beep;
22 if (flags & 1)
23 - write(1, bsseq, sizeof(bsseq) - 1);
24 + write(1, bsseq, sizeof(bsseq));
25 c--;
26 goto loop;
28 @@ -265,7 +265,7 @@
30 if (flags & 1)
31 while(c-- > buf)
32 - write(1, bsseq, sizeof(bsseq) - 1);
33 + write(1, bsseq, sizeof(bsseq));
35 c = buf;
36 goto loop;