summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-04-14 03:50:38 +0000
committerTim Potter <tpot@samba.org>2003-04-14 03:50:38 +0000
commit862c88d81050483bc42f7d8eafcf97af3d1406e4 (patch)
tree7e90ed599dfb51207d4a752af5652ec6393118eb
parent448fbda49693f2575ba9683bd1fee3d535ed5036 (diff)
downloadsamba-862c88d81050483bc42f7d8eafcf97af3d1406e4.tar.gz
samba-862c88d81050483bc42f7d8eafcf97af3d1406e4.tar.bz2
samba-862c88d81050483bc42f7d8eafcf97af3d1406e4.zip
Array size fixup for construct_nt_devicemode() from HEAD.
(This used to be commit 5d1e8cca03b3908e2266e39f4b50ef16ef4ef2b2)
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 3f5bf55534..a486fb9c00 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[MAXDEVICENAME+1];
+ char adevice[MAXDEVICENAME];
NT_DEVICEMODE *nt_devmode = (NT_DEVICEMODE *)malloc(sizeof(NT_DEVICEMODE));
if (nt_devmode == NULL) {