LCDproc development and user support list

Text archives Help

[Lcdproc] Error: client name too long in lcdproc

Chronological Thread 
  • From: a.foss AT (Andrew Foss)
  • Subject: [Lcdproc] Error: client name too long in lcdproc
  • Date: Mon Mar 27 23:39:01 2006

any recommendations?

I see 2 solutions;

in the server client_commands.c
client_set_func (Client * c, int argc, char **argv)
int i;
char str[16];

"str" is 16, on my linux kernel the UTSNAME_LENGTH is defined at 65, not
sure about other systems or whether there's any standards for limits to
hostname lengths.

in the lcdproc client main.c
const char *get_hostname()

get_hostname could be modified to return a max 16 character name.

option 1 seems the simplest, though I know we're trying to to change the
server code, getting ready for release...


Markus Dolze wrote:
> Hi,
> when trying Andrew Foss' patch with lcdproc I received the following
> errors (not exact wording):
> "huh? client name too long"
> followed by several
> "you must set a client name"
> I traced this back to a change in lcdproc client on 2006/02/18 when
> the "client_set -name" on server connect was "enhanced" with with
> clients hostname.
> If you look at server/commands/client_command.c the buffer receiving
> this string is only 16 characters long.
> I don't know why that "enhancement" was introduced, so I don't know
> which of client or server to fix.
> Regards
> Markus
> _______________________________________________
> LCDproc mailing list
> LCDproc AT

Archive powered by MHonArc 2.6.18.

Top of page