From 472df57e7b525b4e2d453a19d26800fcfb3d1aa6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 27 Oct 2003 20:09:15 +0000 Subject: Missing UNIX -> DOS codepage conversion. Fix from Alexander Bokovoy . Jeremy. (This used to be commit 8b9b635bd2759642c25fe0cea5eefbbe5af44193) --- source3/smbd/lanman.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 30934d0b3a3..3ea6ab483be 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -2346,15 +2346,15 @@ static BOOL api_RNetServerGetInfo(connection_struct *conn,uint16 vuid, char *par pstring comment; uint32 servertype= lp_default_server_announce(); - pstrcpy(comment,string_truncate(lp_serverstring(), MAX_SERVER_STRING_LENGTH)); + push_ascii(comment,lp_serverstring(), MAX_SERVER_STRING_LENGTH,STR_TERMINATE); if ((count=get_server_info(SV_TYPE_ALL,&servers,lp_workgroup()))>0) { - for (i=0;i