projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb9fcec
)
Using fgets instead of gets.
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 7 Jan 1998 12:58:22 +0000
(12:58 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 7 Jan 1998 12:58:22 +0000
(12:58 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
527b7c4
..
cc0906c
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-1,10
+1,13
@@
/*
/*
- * Copyright (c) 1995-1997, Index Data.
+ * Copyright (c) 1995-1998, Index Data.
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
- * Revision 1.56 1997-11-05 09:18:31 adam
+ * Revision 1.57 1998-01-07 12:58:22 adam
+ * Using fgets instead of gets.
+ *
+ * Revision 1.56 1997/11/05 09:18:31 adam
* The client handles records with no associated syntax.
*
* Revision 1.55 1997/10/31 12:20:08 adam
* The client handles records with no associated syntax.
*
* Revision 1.55 1997/10/31 12:20:08 adam
@@
-1213,7
+1216,7
@@
static int client(int wait)
#endif
{
/* quick & dirty way to get a command line. */
#endif
{
/* quick & dirty way to get a command line. */
- if (!gets(line))
+ if (!fgets(line, 1023, stdin))
break;
if ((res = sscanf(line, "%s %[^;]", word, arg)) <= 0)
{
break;
if ((res = sscanf(line, "%s %[^;]", word, arg)) <= 0)
{