mirror of
https://github.com/samba-team/samba.git
synced 2025-02-19 21:57:57 +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 6a556fd73ac8c247c15df664f7910f8688abfdbc)
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…
x
Reference in New Issue
Block a user