commit | 6e38072addd556e3894284b5bd040ac64fffa72e | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Fri Oct 11 00:45:24 2013 -0700 |
committer | Stephen Hines <srhines@google.com> | Fri Oct 11 12:14:49 2013 -0700 |
tree | e13c1bf92ae30ecd9050b1d519cfd24831442ddf | |
parent | eda2679e30b997d036e0ec572cda054adc2ac3a6 [diff] |
Wrap sprintf()/snprintf() macros to prevent expansion errors. Previously, FORTIFY_SOURCE used single macros to define these standard functions for use with clang. This can cause conflicts with other macros used to call these functions, particularly when those macros expand the number of arguments to the function. This change wraps our macro definitions, so that expansion properly takes place for programmer arguments first. Change-Id: I55929b1fd2a643b9d14a17631c4bcab3b0b712cf