Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
42c76273ad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/pnmimagetypes/pnmFileTypeSGIWriter.cxx

+ 2 - 2
panda/src/pnmimagetypes/pnmFileTypeSGIWriter.cxx

@@ -152,8 +152,8 @@ write_header() {
   }
   
   if( sgi_storage_type != STORAGE_VERBATIM ) {
-    table = new TabEntry[_num_channels * _x_size];
-    memset(table, 0, _num_channels * _x_size * sizeof(TabEntry));
+    table = new TabEntry[_num_channels * _y_size];
+    memset(table, 0, _num_channels * _y_size * sizeof(TabEntry));
   }
 
   write_rgb_header(sgi_imagename.c_str());