diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-06-07 12:13:26 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-09 12:40:08 +0200 |
commit | 8d4a8389bb2df77ff8923dda8368aa2915652c1a (patch) | |
tree | aba02d7ca688a18a9ecfa2beccfe4e1b8d464c72 /source3/printing | |
parent | 5e26e94092b56ee47e7ec7837f7cd0feb3fb0119 (diff) | |
download | samba-8d4a8389bb2df77ff8923dda8368aa2915652c1a.tar.gz samba-8d4a8389bb2df77ff8923dda8368aa2915652c1a.tar.bz2 samba-8d4a8389bb2df77ff8923dda8368aa2915652c1a.zip |
s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()
Using the standard macro makes it easier to move code into common, as
TALLOC_MEMDUP isn't standard talloc.
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/notify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c index f9a2ca3b18..0295ad2f1f 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -254,9 +254,9 @@ static bool copy_notify2_msg( SPOOLSS_NOTIFY_MSG *to, SPOOLSS_NOTIFY_MSG *from ) memcpy( to, from, sizeof(SPOOLSS_NOTIFY_MSG) ); if ( from->len ) { - to->notify.data = (char *)TALLOC_MEMDUP(send_ctx, from->notify.data, from->len ); + to->notify.data = (char *)talloc_memdup(send_ctx, from->notify.data, from->len ); if ( !to->notify.data ) { - DEBUG(0,("copy_notify2_msg: TALLOC_MEMDUP() of size [%d] failed!\n", from->len )); + DEBUG(0,("copy_notify2_msg: talloc_memdup() of size [%d] failed!\n", from->len )); return False; } } |