summaryrefslogtreecommitdiff
path: root/source4/libcli/util/nterr.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-07 22:01:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:33 -0500
commit922101afbd64b42c01e1093b9d58fff24b1f852e (patch)
treed7e23d4e92ec7bf649b8fcca2facac9f3b55c6bd /source4/libcli/util/nterr.c
parent3b6186a67630cf05bc33e6e9288e132f39173ef4 (diff)
downloadsamba-922101afbd64b42c01e1093b9d58fff24b1f852e.tar.gz
samba-922101afbd64b42c01e1093b9d58fff24b1f852e.tar.bz2
samba-922101afbd64b42c01e1093b9d58fff24b1f852e.zip
r25010: Avoid uses of pstring
(This used to be commit cce7785474fc536dd44b39403c785b524b128144)
Diffstat (limited to 'source4/libcli/util/nterr.c')
-rw-r--r--source4/libcli/util/nterr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/libcli/util/nterr.c b/source4/libcli/util/nterr.c
index 3aea0b51bc..b1f345016d 100644
--- a/source4/libcli/util/nterr.c
+++ b/source4/libcli/util/nterr.c
@@ -20,7 +20,6 @@
/* NT error codes. please read nterr.h */
#include "includes.h"
-#include "pstring.h"
#include "libcli/ldap/ldap.h"
typedef struct
@@ -862,7 +861,7 @@ const char *get_friendly_nt_error_msg(NTSTATUS nt_code)
*****************************************************************************/
const char *get_nt_error_c_code(NTSTATUS nt_code)
{
- static pstring out;
+ static char out[40];
int idx = 0;
while (nt_errs[idx].nt_errstr != NULL) {