ec429 / libatg

A Tiny GUI toolkit for SDL
11 stars 2 forks source link

format-security warning in w_filepicker.c #1

Closed akien-mga closed 9 years ago

akien-mga commented 9 years ago

Hi,

Here's a warning thrown by gcc 4.9.2 with -Wformat:

w_filepicker.c: In function 'atg_create_filepicker':
w_filepicker.c:225:4: warning: format not a string literal and no format arguments [-Wformat-security]
    snprintf(rv->curdir, CWD_BUF_SIZE, dir);
    ^
w_filepicker.c:225:4: warning: format not a string literal and no format arguments [-Wformat-security]
ec429 commented 9 years ago

Fixed in 4e1a024, thanks for reporting.