-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: urcd action: commit revision: path_from: revision_from: 1f77c78e607ad41d85ed187172abcc8a7ac02472: path_to: revision_to:
commit 1f77c78e607ad41d85ed187172abcc8a7ac02472 Author: root <root@d3v11.ano> Date: Wed Mar 6 18:51:25 2013 +0000 [src/urcstream] we don't need to check n's len twice before write() diff --git a/src/urcstream.c b/src/urcstream.c
--- a/src/urcstream.c +++ b/src/urcstream.c @@ -131,7 +131,7 @@ main(int argc, char **argv) n = read(3,buffer,1024); if (n<1) sock_close(9); if (buffer[n-1] != '\n') continue; - if (n) if (write(wr,buffer,n)<0) sock_close(10); + if (write(wr,buffer,n)<0) sock_close(10); } }
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 18:38:02 2024