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:
af2e686
)
For record update, open file in binary mode
author
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 6 Mar 2005 12:54:32 +0000
(12:54 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 6 Mar 2005 12:54:32 +0000
(12:54 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
b062912
..
033aea1
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: client.c,v 1.274 2005-02-25 17:03:41 adam Exp $
+ * $Id: client.c,v 1.275 2005-03-06 12:54:32 adam Exp $
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-2085,7
+2085,7
@@
static int cmd_update_common(const char *arg, int version)
FILE *inf;
struct stat status;
stat (fname, &status);
FILE *inf;
struct stat status;
stat (fname, &status);
- if (S_ISREG(status.st_mode) && (inf = fopen(fname, "r")))
+ if (S_ISREG(status.st_mode) && (inf = fopen(fname, "rb")))
{
size_t len = status.st_size;
char *buf = (char *) xmalloc (len);
{
size_t len = status.st_size;
char *buf = (char *) xmalloc (len);