Changeset 4872 for libcaca


Ignore:
Timestamp:
Sep 16, 2013, 9:24:45 AM (5 years ago)
Author:
Pascal Terjan
Message:

Fill in the correct array (coverity)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/caca-canvas.c

    r4859 r4872  
    493493            if((TYPE(v) != T_ARRAY) || (RARRAY_LEN(v) != 2))
    494494                rb_raise(rb_eArgError, "invalid uv list");
    495             ccoords[2*i] = NUM2DBL(rb_ary_entry(v, 0));
    496             ccoords[2*i+1] = NUM2DBL(rb_ary_entry(v, 1));
     495            cuv[2*i] = NUM2DBL(rb_ary_entry(v, 0));
     496            cuv[2*i+1] = NUM2DBL(rb_ary_entry(v, 1));
    497497        }
    498498    }
Note: See TracChangeset for help on using the changeset viewer.