summaryrefslogtreecommitdiffstats
path: root/source/libsmb/nterr.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-01-08 20:37:48 +0000
committerJeremy Allison <jra@samba.org>2001-01-08 20:37:48 +0000
commit3a50ad16c5b51d0d812e50cfb65ff43a5786d131 (patch)
tree444489de7c547a2009316359f12e418ec5c39d6c /source/libsmb/nterr.c
parent4afc02447d4de9aaa329e4ec59d36f91716835c0 (diff)
downloadsamba-3a50ad16c5b51d0d812e50cfb65ff43a5786d131.tar.gz
samba-3a50ad16c5b51d0d812e50cfb65ff43a5786d131.tar.xz
samba-3a50ad16c5b51d0d812e50cfb65ff43a5786d131.zip
Big merge to sync up appliance-head and 2.2.
Jeremy.
Diffstat (limited to 'source/libsmb/nterr.c')
-rw-r--r--source/libsmb/nterr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c
index f9d717477a0..17bb825219f 100644
--- a/source/libsmb/nterr.c
+++ b/source/libsmb/nterr.c
@@ -540,9 +540,10 @@ BOOL get_safe_nt_error_msg(uint32 nt_code,char *msg, size_t len)
/*****************************************************************************
returns an NT error message. not amazingly helpful, but better than a number.
*****************************************************************************/
-const char *get_nt_error_msg(uint32 nt_code)
+char *get_nt_error_msg(uint32 nt_code)
{
static pstring msg;
+
get_safe_nt_error_msg(nt_code, msg, sizeof(msg));
return msg;
}