projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use __in64 type for 64-bit YAZ on Windows
[yaz-moved-to-github.git]
/
client
/
client.c
diff --git
a/client/client.c
b/client/client.c
index
824fe24
..
d1443ab
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-1215,13
+1215,8
@@
static int send_srw(Z_SRW_PDU *sr)
const char *charset = negotiationCharset;
const char *host_port = cur_host;
Z_GDU *gdu;
const char *charset = negotiationCharset;
const char *host_port = cur_host;
Z_GDU *gdu;
- char *path = 0;
+ char *path = yaz_encode_sru_dbpath_odr(out, databaseNames[0]);
- path = (char *) odr_malloc(out, 2+strlen(databaseNames[0]));
- *path = '/';
- strcpy(path+1, databaseNames[0]);
-
- printf("path=%s\n", path);
gdu = z_get_HTTP_Request_host_path(out, host_port, path);
if (!yaz_matchstr(sru_method, "get"))
gdu = z_get_HTTP_Request_host_path(out, host_port, path);
if (!yaz_matchstr(sru_method, "get"))