summaryrefslogtreecommitdiff
path: root/source4/winbind/wb_samba3_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/winbind/wb_samba3_protocol.h')
-rw-r--r--source4/winbind/wb_samba3_protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/winbind/wb_samba3_protocol.h b/source4/winbind/wb_samba3_protocol.h
index 473a91b752..9a13210187 100644
--- a/source4/winbind/wb_samba3_protocol.h
+++ b/source4/winbind/wb_samba3_protocol.h
@@ -33,3 +33,7 @@ struct wbsrv_samba3_call {
/* the response structure of the samba3 protocol*/
struct winbindd_response response;
};
+
+#define WBSRV_SAMBA3_SET_STRING(dest, src) do { \
+ strncpy(dest, src, sizeof(dest)-1);\
+} while(0)