summaryrefslogtreecommitdiff
path: root/source3/libsmb/nterr.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb/nterr.c')
-rw-r--r--source3/libsmb/nterr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c
index f9d717477a..17bb825219 100644
--- a/source3/libsmb/nterr.c
+++ b/source3/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;
}