From ccb58b303a5f9b37922450fa535c019511895a8a Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 6 Mar 2003 16:09:11 +0000 Subject: add #define for the max device name length in a DEVICEMODE (This used to be commit 52ef84b53495db1eac6ecfb0b926ef8df7ea5cc5) --- source3/printing/nt_printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/printing/nt_printing.c') diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index fd1f847a21..74a9ac8174 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2110,7 +2110,7 @@ done: NT_DEVICEMODE *construct_nt_devicemode(const fstring default_devicename) { - char adevice[32]; + char adevice[MAXDEVICENAME]; NT_DEVICEMODE *nt_devmode = (NT_DEVICEMODE *)malloc(sizeof(NT_DEVICEMODE)); if (nt_devmode == NULL) { -- cgit