[BACK]Return to test-strlcpy.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/test-strlcpy.c between version 1.1 and 1.3

version 1.1, 2010/01/01 17:14:31 version 1.3, 2015/10/06 18:32:20
Line 1 
Line 1 
 #include <string.h>  #include <string.h>
   
 int  int
 main(int argc, char **argv)  main(void)
 {  {
         strlcpy(argv[0], argv[1], 10);          char buf[2] = "";
         return 0;          return ! (strlcpy(buf, "a", sizeof(buf)) == 1 &&
               buf[0] == 'a' && buf[1] == '\0');
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

CVSweb