Skip to contentSkip to conversation

cld: write one less newline into PID

PATCH Applied Pete Zaitcev 2 participants 2 messages Jan 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cld: write one less newline into PID

---
 server/server.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
server/server.c +1 -1
index c3e77f9..7c9c07a 100644
@@ -706,7 +725,7 @@ static int net_open_any(void)
 
 	if (cld_srv.port_file) {
 		char portstr[7];
-		snprintf(portstr, sizeof(portstr), "%u\n", port);
+		snprintf(portstr, sizeof(portstr), "%u", port);
 		return net_write_port(cld_srv.port_file, portstr);
 	}
 	return 0;