From 3f3e3898696eb60b2d91af081ad3e9306efb1801 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 27 Oct 2003 20:09:12 +0000 Subject: Missing UNIX -> DOS codepage conversion. Fix from Alexander Bokovoy . Jeremy. (This used to be commit f714998b44c6a1082943a399ce3b0ce316efc3a0) --- 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 30934d0b3a..3ea6ab483b 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