Skip to content

Commit

Permalink
ast: Fix warning in sprintf-style ErsRep call
Browse files Browse the repository at this point in the history
Using a variable rather than a constant string in a printf-style
argument now seems to be an error in clang rather than simply
a warning. Use "%s" instead.
(cherry picked from commit 3b669f3)
  • Loading branch information
timj authored and MalcolmCurrie committed Aug 9, 2012
1 parent d437e3f commit 2bebb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ast/err_drama.c
Expand Up @@ -118,5 +118,5 @@ void astPutErr_( int status, const char *message ) {
report the error message through EMS and to associate the error
status with it. Ignore any returned status value. */
local_status = status;
ErsRep( 0, &local_status, message );
ErsRep( 0, &local_status, "%s", message );
}

0 comments on commit 2bebb89

Please sign in to comment.