diff options
author | Jeremy Allison <jra@samba.org> | 2003-10-27 20:09:15 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-10-27 20:09:15 +0000 |
commit | 472df57e7b525b4e2d453a19d26800fcfb3d1aa6 (patch) | |
tree | f189a95b4362e253fd7bfe4f1657d96f7f4f2bcc /source3 | |
parent | 55f8ca432b60a8e85a6c68eaedaabf45615484af (diff) | |
download | samba-472df57e7b525b4e2d453a19d26800fcfb3d1aa6.tar.gz samba-472df57e7b525b4e2d453a19d26800fcfb3d1aa6.tar.bz2 samba-472df57e7b525b4e2d453a19d26800fcfb3d1aa6.zip |
Missing UNIX -> DOS codepage conversion. Fix from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
Jeremy.
(This used to be commit 8b9b635bd2759642c25fe0cea5eefbbe5af44193)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/lanman.c | 10 |
1 files changed, 5 insertions, 5 deletions
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<count;i++) - if (strequal(servers[i].name,local_machine)) - { + for (i=0;i<count;i++) { + if (strequal(servers[i].name,local_machine)) { servertype = servers[i].type; - pstrcpy(comment,servers[i].comment); + push_ascii(comment,servers[i].comment,sizeof(pstring),STR_TERMINATE); } + } } SAFE_FREE(servers); |