Advertisement
kaspyx

snprintf bug

Sep 26th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.   char buf[8];
  6.  
  7.   snprintf(buf,sizeof(buf),"I'm not vulnerability");
  8.  
  9. //  sprintf(buf,"I'm vulnerability");
  10. //  snprintf(buf,"%s","I'm vulnerability"); //**********
  11.  
  12.   printf("%s\n",buf);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement