summaryrefslogtreecommitdiff
path: root/source/libsmb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-03-30 08:29:50 +0000
committerLuke Leighton <lkcl@samba.org>2000-03-30 08:29:50 +0000
commit548644308dca2a90a63b8c51024d5acf631b7c2d (patch)
tree424d62a6f684844710d871d8d8009c1d7edd01b8 /source/libsmb
parent3358af5baa7290a330658de0725ce2f379c4ad7e (diff)
downloadsamba-548644308dca2a90a63b8c51024d5acf631b7c2d.tar.gz
cannot use snprintf, must use slprintf
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/nterr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c
index 11af406b5fb..7e9d8d84f20 100644
--- a/source/libsmb/nterr.c
+++ b/source/libsmb/nterr.c
@@ -525,7 +525,7 @@ BOOL get_safe_nt_error_msg(uint32 nt_code, char *msg, size_t len)
{
int idx = 0;
- snprintf(msg, len, "NT code %08x", nt_code);
+ slprintf(msg, len-1, "NT code %08x", nt_code);
nt_code &= 0xFFFF;