summaryrefslogtreecommitdiff
path: root/source3/smbd/ipc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-07-22 13:59:19 +0000
committerJeremy Allison <jra@samba.org>1998-07-22 13:59:19 +0000
commitf5866fd4ba8da9acde87c7f9da8f1a242540e287 (patch)
treec7e80a6b7321319b683e4d730b0de7e6f5ed2ff9 /source3/smbd/ipc.c
parent781c9e50820e3bc2b11e15bbff2f16b6ad74f26a (diff)
downloadsamba-f5866fd4ba8da9acde87c7f9da8f1a242540e287.tar.gz
samba-f5866fd4ba8da9acde87c7f9da8f1a242540e287.tar.bz2
samba-f5866fd4ba8da9acde87c7f9da8f1a242540e287.zip
Fixed bug found by Richard Sharpe. After increasing files_struct size by
MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that enumerates the array. Created new MAX_FNUMS in local.h, changed all code that iterates through the files_struct array to use this. (sorry Richard). Jeremy. (This used to be commit 339b10222269d71c7a493cc08b7b1bfd35fd55fc)
Diffstat (limited to 'source3/smbd/ipc.c')
-rw-r--r--source3/smbd/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index cbacca3b83..8b06fc91a3 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -1983,7 +1983,7 @@ static BOOL api_PrintJobInfo(int cnum,uint16 vuid,char *param,char *data,
become_root(True);
- for (i=0;i<MAX_OPEN_FILES;i++)
+ for (i=0;i<MAX_FNUMS;i++)
if (Files[i].open && Files[i].print_file)
{
pstring wd;