diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-06-06 01:53:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-06-06 01:53:05 +0000 |
commit | 1da9c5531a8e26dc63b31a27fa73e0932278acb4 (patch) | |
tree | 2d82159d668efce64aa020f2c6ba9c14f662740a | |
parent | 36f1189be1609490b6a825a2608b9cf5dc682656 (diff) | |
download | samba-1da9c5531a8e26dc63b31a27fa73e0932278acb4.tar.gz samba-1da9c5531a8e26dc63b31a27fa73e0932278acb4.tar.xz samba-1da9c5531a8e26dc63b31a27fa73e0932278acb4.zip |
fixed sizeof() typo
-rw-r--r-- | source/printing/nt_printing.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 2a863e1b9f5..768e97ffdb8 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -35,8 +35,8 @@ static TDB_CONTEXT *tdb; /* used for driver files */ /* we need to have a small set of default forms to support our default printer */ static nt_forms_struct default_forms[] = { - {"A4", 0xb0, 0x3354f, 0x4884e, 0x0, 0x0, 0x3354f, 0x4884e}, - {"Letter", 0x20, 0x34b5b, 0x44367, 0x0, 0x0, 0x34b5b, 0x44367} + {"Letter", 0x20, 0x34b5b, 0x44367, 0x0, 0x0, 0x34b5b, 0x44367}, + {"A4", 0xb0, 0x3354f, 0x4884e, 0x0, 0x0, 0x3354f, 0x4884e} }; @@ -100,8 +100,8 @@ int get_ntforms(nt_forms_struct **list) /* we should never return a null forms list or NT gets unhappy */ if (n == 0) { - *list = (nt_forms_struct *)memdup(&default_forms, sizeof(default_forms)); - n = sizeof(sizeof(default_forms))/ sizeof(sizeof(default_forms[0])); + *list = (nt_forms_struct *)memdup(&default_forms[0], sizeof(default_forms)); + n = sizeof(default_forms) / sizeof(default_forms[0]); } |