-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: libirc action: commit revision: path_from: revision_from: 79ea8f2e8cd7e82bfd5f9ed4eb842eff63d2b434: path_to: revision_to:
commit 79ea8f2e8cd7e82bfd5f9ed4eb842eff63d2b434 Author: epochqwert <epoch@hacking.allowed.org> Date: Tue Mar 31 13:32:22 2015 -0500 I don't remember. diff --git a/libirc.c b/libirc.c
--- a/libirc.c +++ b/libirc.c @@ -17,18 +17,10 @@ int main(int argc,char *argv[]) { return 0; } -#define SILLYLIMIT 256 - int serverConnect(char *serv,char *port) { int rv; int fd=0; - int n=1; - int try_ipv4=0; - char buf[SILLYLIMIT]; struct addrinfo hints, *servinfo, *p=0; - struct in_addr saddr; - struct in6_addr saddr6; - struct hostent *he; memset(&hints,0,sizeof hints); hints.ai_family=AF_INET; hints.ai_socktype=SOCK_STREAM; @@ -230,7 +222,7 @@ char **line_cutter(int fd,char *line,struct user *user) { if((a[0]=strchr((user->nick),' '))) { *a[0]=0; a[0]++; - for(i=0;a[i+1]=strchr(a[i],' ');i++) { + for(i=0;(a[i+1]=strchr(a[i],' '));i++) { *a[i+1]=0; a[i+1]++; if(*a[i+1] == ':') {//we're done.
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 17:20:26 2024