From f50d755b459453c64e21e69f3b5edd4204bc221c Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 18 Oct 2017 16:05:09 -0700 Subject: [PATCH] qb: Don't use variables in the printf format string. --- qb/qb.libs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qb/qb.libs.sh b/qb/qb.libs.sh index 573b982369..b0ce0bd1e8 100644 --- a/qb/qb.libs.sh +++ b/qb/qb.libs.sh @@ -26,7 +26,7 @@ check_lib() #$1 = HAVE_$1 $2 = lib $3 = function in lib $4 = extralibs $5 = head if [ "$3" ]; then ECHOBUF="Checking function $3 in ${2% }" if [ "$5" ]; then - printf "$5\nint main(void) { void *p = (void*)$3; return 0; }" > $TEMP_C + printf %s\\n "$5" "int main(void) { void *p = (void*)$3; return 0; }" > $TEMP_C else echo "void $3(void); int main(void) { $3(); return 0; }" > $TEMP_C fi