Changeset 7414:d36d439bc32c


Ignore:
Timestamp:
11/24/07 21:03:01 (6 years ago)
Author:
Carl Witty <cwitty@…>
Branch:
default
Tags:
2.8.14.rc3
Message:

Allocate correct size for array of names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/rings/polynomial/multi_polynomial_libsingular.pyx

    r7413 r7414  
    200200        self._has_singular = True 
    201201 
    202         _names = <char**>omAlloc0(sizeof(char*)*(len(self._names)+1)) 
     202        assert(n == len(self._names)) 
     203 
     204        _names = <char**>omAlloc0(sizeof(char*)*(len(self._names))) 
    203205 
    204206        for i from 0 <= i < n: 
Note: See TracChangeset for help on using the changeset viewer.