aboutsummaryrefslogtreecommitdiffstats
path: root/util/http.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-12-29 00:58:05 +0000
committerDavid Shaw <[email protected]>2004-12-29 00:58:05 +0000
commitf539f3d2b28b25e0c681623c9d1f256ac55ea205 (patch)
tree1007f097159ef310ee77a436a7381a6c081fed78 /util/http.c
parent(find_endpoint): New. (diff)
downloadgnupg-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.c1
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;
}