initial import
[patches.git] / openobex-check-for-EOF.patch
1 Index: apps/obex_test.c
2 ===================================================================
3 RCS file: /cvsroot/openobex/openobex/apps/obex_test.c,v
4 retrieving revision 1.34
5 diff -u -p -r1.34 obex_test.c
6 --- apps/obex_test.c 2 Jun 2007 05:25:32 -0000 1.34
7 +++ apps/obex_test.c 22 Jun 2007 09:12:21 -0000
8 @@ -345,6 +345,8 @@ int main (int argc, char *argv[])
9 while (!end) {
10 printf("> ");
11 num = scanf("%s", cmd);
12 + if (num == EOF)
13 + break;
14 switch (cmd[0] | 0x20) {
15 case 'q':
16 end=1;