diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-27 17:50:39 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-27 17:50:39 -0800 |
commit | 93bfb6ca542e1e99ae7ae93fca94a0e33d99bca5 (patch) | |
tree | 2a7f412009da06326af8ed38cc68fbde5d5784c3 | |
parent | 2cda3e78445da8f53f8358ae38892ab799c3dd3a (diff) | |
download | samba-93bfb6ca542e1e99ae7ae93fca94a0e33d99bca5.tar.gz samba-93bfb6ca542e1e99ae7ae93fca94a0e33d99bca5.tar.bz2 samba-93bfb6ca542e1e99ae7ae93fca94a0e33d99bca5.zip |
Fix old cut-and-paste bug where the wrong field was being written to.
Jerry please check.
Jeremy.
(This used to be commit 6a556fd73ac8c247c15df664f7910f8688abfdbc)
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index f18c120a9f..a6f3bfba17 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1417,8 +1417,8 @@ static DEVICEMODE* dup_devicemode(TALLOC_CTX *ctx, DEVICEMODE *devmode) len = unistrlen(devmode->formname.buffer); if (len != -1) { - d->devicename.buffer = TALLOC_ARRAY(ctx, uint16, len); - if (!d->devicename.buffer) { + d->formname.buffer = TALLOC_ARRAY(ctx, uint16, len); + if (!d->formname.buffer) { return NULL; } if (unistrcpy(d->formname.buffer, devmode->formname.buffer) != len) |