1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix old cut-and-paste bug where the wrong field was being written to.

Jerry please check.
Jeremy.
This commit is contained in:
Jeremy Allison 2007-11-27 17:50:39 -08:00
parent 3052172d2b
commit 6a556fd73a

View File

@ -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)