Ignore:
Timestamp:
Nov 6, 2012, 10:02:55 PM (9 years ago)
Author:
Pascal Terjan
Message:

Allow building with -Werror=format-security

File:
1 edited

Legend:

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

    r4806 r4846  
    8585    if(display == NULL)
    8686    {
    87         rb_raise(rb_eRuntimeError, strerror(errno));
     87        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
    8888    }
    8989
     
    132132    if(caca_set_display_title(_SELF, StringValuePtr(t))<0)
    133133    {
    134         rb_raise(rb_eRuntimeError, strerror(errno));
     134        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
    135135    }
    136136    return t;
     
    253253    if(caca_set_display_driver(_SELF, StringValuePtr(driver))<0)
    254254    {
    255         rb_raise(rb_eRuntimeError, strerror(errno));
     255        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
    256256    }
    257257    return driver;
     
    268268    if(caca_set_cursor(_SELF, flag)<0)
    269269    {
    270         rb_raise(rb_eRuntimeError, strerror(errno));
     270        rb_raise(rb_eRuntimeError, "%s", strerror(errno));
    271271    }
    272272    return flag;
Note: See TracChangeset for help on using the changeset viewer.