diff options
author | David Shaw <[email protected]> | 2004-12-29 00:58:05 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-12-29 00:58:05 +0000 |
commit | f539f3d2b28b25e0c681623c9d1f256ac55ea205 (patch) | |
tree | 1007f097159ef310ee77a436a7381a6c081fed78 /util/http.c | |
parent | (find_endpoint): New. (diff) | |
download | gnupg-f539f3d2b28b25e0c681623c9d1f256ac55ea205.tar.gz gnupg-f539f3d2b28b25e0c681623c9d1f256ac55ea205.zip |
Better implementation for the SRV check. We don't need to actually check
all the header files individually since the SRV test compile uses them
together.
Diffstat (limited to 'util/http.c')
-rw-r--r-- | util/http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/http.c b/util/http.c index a0e3c337c..3be005982 100644 --- a/util/http.c +++ b/util/http.c @@ -826,6 +826,7 @@ connect_server( const char *server, ushort port, unsigned int flags, srvlist=m_alloc_clear(sizeof(struct srventry)); srvlist->port=port; strncpy(srvlist->target,server,MAXDNAME); + srvlist->target[MAXDNAME-1]='\0'; srvcount=1; } |