aboutsummaryrefslogtreecommitdiffstats
path: root/lib/url.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-03-15 16:09:50 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2008-03-15 16:09:50 +0000
commit9ad86bb22e53a40b3ad5bbc57f33d819d2748b0c (patch)
treeb6d51b2b2d2a0d587e6a62ac454344cfaceca32a /lib/url.h
parent7f421d6b922837857d6aca342da314225023eb46 (diff)
Fixed issues with "long" URLs in url.c. Reusing code from 2001 wasn't a
good idea...
Diffstat (limited to 'lib/url.h')
-rw-r--r--lib/url.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/url.h b/lib/url.h
index e9e1ecfe..8c038c91 100644
--- a/lib/url.h
+++ b/lib/url.h
@@ -25,20 +25,20 @@
#include "bitlbee.h"
-#define PROTO_HTTP 2
-#define PROTO_HTTPS 5
-#define PROTO_SOCKS4 3
-#define PROTO_SOCKS5 4
-#define PROTO_DEFAULT PROTO_HTTP
+#define PROTO_HTTP 2
+#define PROTO_HTTPS 5
+#define PROTO_SOCKS4 3
+#define PROTO_SOCKS5 4
+#define PROTO_DEFAULT PROTO_HTTP
typedef struct url
{
int proto;
int port;
- char host[MAX_STRING];
- char file[MAX_STRING];
- char user[MAX_STRING];
- char pass[MAX_STRING];
+ char host[MAX_STRING+1];
+ char file[MAX_STRING+1];
+ char user[MAX_STRING+1];
+ char pass[MAX_STRING+1];
} url_t;
int url_set( url_t *url, char *set_url );