Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. QUERY_STRING='This is my query string'
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5.  
  6. void main (int argc, char *argv[])
  7. {
  8. printf("%sn", getenv("QUERY_STRING"));
  9. }
  10.  
  11. mantis@toboggan /testing/cgi_download/temp $ echo $QUERY_STRING; ./a.out
  12. This is my query string.
  13. Segmentation fault
  14. mantis@toboggan /testing/cgi_download/temp $
  15.  
  16. Linux toboggan 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement