mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Fix old cut-and-paste bug where the wrong field was being written to.
Jerry please check.
Jeremy.
(This used to be commit 6a556fd73a
)
This commit is contained in:
parent
2cda3e7844
commit
93bfb6ca54
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user