Skip to content
Snippets Groups Projects
Commit 0efba8b2 authored by Morris Jette's avatar Morris Jette
Browse files

Fix for cross compile

Added double brackets so brackets could be used within test program
parent 6a72b917
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ AC_DEFUN([X_AC_PRINTF_NULL], [ ...@@ -37,7 +37,7 @@ AC_DEFUN([X_AC_PRINTF_NULL], [
AC_RUN_IFELSE([AC_LANG_PROGRAM([ AC_RUN_IFELSE([AC_LANG_PROGRAM([
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>], #include <stdlib.h>],
[ char tmp='\0'; char *n=NULL; snprintf(&tmp,1,"%s",n); exit(0); ])], [[ char tmp[8]; char *n=NULL; snprintf(tmp,8,"%s",n); exit(0); ]])],
printf_null_ok=yes, printf_null_ok=yes,
printf_null_ok=no, printf_null_ok=no,
printf_null_ok=yes) printf_null_ok=yes)
......
...@@ -22957,7 +22957,7 @@ else ...@@ -22957,7 +22957,7 @@ else
int int
main () main ()
{ {
char tmp='\0'; char *n=NULL; snprintf(&tmp,1,"%s",n); exit(0); char tmp[8]; char *n=NULL; snprintf(tmp,8,"%s",n); exit(0);
; ;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment