]> www.wagner.pp.ru Git - oss/catdoc.git/blobdiff - src/ole.h
Fixed (some) segmentation faults when parsing broken OLE structure
[oss/catdoc.git] / src / ole.h
index 181c7e7f71e10af020bde31ff557c322be1842cf..b0d6e8eebe0be3cfb413b21902ee970701339907 100644 (file)
--- a/src/ole.h
+++ b/src/ole.h
@@ -16,7 +16,7 @@
 #define BBD_BLOCK_SIZE     512
 #define SBD_BLOCK_SIZE      64
 #define PROP_BLOCK_SIZE    128
 #define BBD_BLOCK_SIZE     512
 #define SBD_BLOCK_SIZE      64
 #define PROP_BLOCK_SIZE    128
-#define OLENAMELENGHT       32
+#define OLENAMELENGTH       32
 #define MSAT_ORIG_SIZE     436
 
 typedef enum {
 #define MSAT_ORIG_SIZE     436
 
 typedef enum {
@@ -28,7 +28,7 @@ typedef enum {
 
 typedef struct {
        FILE *file;
 
 typedef struct {
        FILE *file;
-       char name[OLENAMELENGHT+1];
+       char name[OLENAMELENGTH+1];
        long int startBlock;
        long int curBlock;
        unsigned long int length;
        long int startBlock;
        long int curBlock;
        unsigned long int length;