summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-03-06 16:06:12 +0000
committerGerald Carter <jerry@samba.org>2003-03-06 16:06:12 +0000
commit21ec2b6ba3ddba6964f6ddb53f8494e4a8b48a83 (patch)
tree9d60531f7251ed420da3c76fd920a5a03fbfa525 /source/printing
parent8863ff863c1da42aa6b8718f315c608d9d9067c6 (diff)
downloadsamba-21ec2b6ba3ddba6964f6ddb53f8494e4a8b48a83.tar.gz
samba-21ec2b6ba3ddba6964f6ddb53f8494e4a8b48a83.tar.xz
samba-21ec2b6ba3ddba6964f6ddb53f8494e4a8b48a83.zip
add #define for the max device name length in a DEVICEMODE
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index 6df2c6b4457..a486fb9c003 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -2110,7 +2110,7 @@ done:
NT_DEVICEMODE *construct_nt_devicemode(const fstring default_devicename)
{
- char adevice[33];
+ char adevice[MAXDEVICENAME];
NT_DEVICEMODE *nt_devmode = (NT_DEVICEMODE *)malloc(sizeof(NT_DEVICEMODE));
if (nt_devmode == NULL) {