diff options
Diffstat (limited to 'net/qadsl/files/patch-src__http.c')
-rw-r--r-- | net/qadsl/files/patch-src__http.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/net/qadsl/files/patch-src__http.c b/net/qadsl/files/patch-src__http.c new file mode 100644 index 000000000000..bd995479330a --- /dev/null +++ b/net/qadsl/files/patch-src__http.c @@ -0,0 +1,53 @@ +*** src/http.c.orig Tue Jun 29 23:59:57 2004 +--- src/http.c Sat Sep 11 22:19:22 2004 +*************** +*** 27,33 **** + #include "config.h" + #endif + +! #include <alloca.h> + #include <netdb.h> + #include <netinet/in.h> + #include <stdio.h> +--- 27,33 ---- + #include "config.h" + #endif + +! #include <sys/types.h> + #include <netdb.h> + #include <netinet/in.h> + #include <stdio.h> +*************** +*** 278,284 **** + + strlen (config->password_key) + strlen (config->password) + + strlen (config->login_string_footer) + strlen ("Plus approximately 10%"); + +! temp = (char *) alloca (length); + if (!temp) + { + close (config->sockfd); +--- 278,284 ---- + + strlen (config->password_key) + strlen (config->password) + + strlen (config->login_string_footer) + strlen ("Plus approximately 10%"); + +! temp = (char *) malloc(length); + if (!temp) + { + close (config->sockfd); +*************** +*** 299,305 **** + + DEBUG ("Login string: %s", temp); + +! login_string = (char *) alloca (length); + if (!login_string) + { + close (config->sockfd); +--- 299,305 ---- + + DEBUG ("Login string: %s", temp); + +! login_string = (char *) malloc(length); + if (!login_string) + { + close (config->sockfd); |