summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-14 14:35:40 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-14 14:35:40 +0200
commite425cb943457ace770538aaf3be421a40a26f99a (patch)
treed625452a69931286f8921bfe44586ede1684ab02 /svdrp.c
parent1e72e33a9739544b64c1d52980ef5f8e43e7f8c1 (diff)
downloadvdr-e425cb943457ace770538aaf3be421a40a26f99a.tar.gz
vdr-e425cb943457ace770538aaf3be421a40a26f99a.tar.bz2
Changed size of all parse buffers to 10KB
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/svdrp.c b/svdrp.c
index 5f8aad40..d1833612 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 1.22 2001/09/01 09:50:03 kls Exp $
+ * $Id: svdrp.c 1.23 2001/09/14 14:31:22 kls Exp $
*/
#define _GNU_SOURCE
@@ -262,7 +262,7 @@ void cSVDRP::Close(bool Timeout)
{
if (file.IsOpen()) {
//TODO how can we get the *full* hostname?
- char buffer[MAXCMDBUFFER];
+ char buffer[BUFSIZ];
gethostname(buffer, sizeof(buffer));
Reply(221, "%s closing connection%s", buffer, Timeout ? " (timeout)" : "");
isyslog(LOG_INFO, "closing SVDRP connection"); //TODO store IP#???
@@ -944,7 +944,7 @@ void cSVDRP::Process(void)
if (file.IsOpen() || file.Open(socket.Accept())) {
if (SendGreeting) {
//TODO how can we get the *full* hostname?
- char buffer[MAXCMDBUFFER];
+ char buffer[BUFSIZ];
gethostname(buffer, sizeof(buffer));
time_t now = time(NULL);
Reply(220, "%s SVDRP VideoDiskRecorder %s; %s", buffer, VDRVERSION, ctime(&now));