summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-10-27 20:09:12 +0000
committerJeremy Allison <jra@samba.org>2003-10-27 20:09:12 +0000
commit3f3e3898696eb60b2d91af081ad3e9306efb1801 (patch)
treedf16afc2cfc3d0b127660c32fb551ac5e9bcfaae
parent99364f1615d86a6aeb9454d40cf596095b78fd1c (diff)
downloadsamba-3f3e3898696eb60b2d91af081ad3e9306efb1801.tar.gz
samba-3f3e3898696eb60b2d91af081ad3e9306efb1801.tar.bz2
samba-3f3e3898696eb60b2d91af081ad3e9306efb1801.zip
Missing UNIX -> DOS codepage conversion. Fix from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
Jeremy. (This used to be commit f714998b44c6a1082943a399ce3b0ce316efc3a0)
-rw-r--r--source3/smbd/lanman.c10
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);