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
12 #define CONTROL(x) (x - 64)
14 -char *bsseq = "\b \b";
15 +char bsseq[3] = { "\b \b" };
18 static jmp_buf jmpbuf;
23 - write(1, bsseq, sizeof(bsseq) - 1);
24 + write(1, bsseq, sizeof(bsseq));
32 - write(1, bsseq, sizeof(bsseq) - 1);
33 + write(1, bsseq, sizeof(bsseq));