[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.2 and 1.3

version 1.2, 2014/01/04 01:11:00 version 1.3, 2015/10/06 18:32:20
Line 4  int
Line 4  int
 main(void)  main(void)
 {  {
         char buf[2] = "";          char buf[2] = "";
         return( ! (1 == strlcpy(buf, "a", sizeof(buf)) &&          return ! (strlcpy(buf, "a", sizeof(buf)) == 1 &&
             'a' == buf[0] && '\0' == buf[1]));              buf[0] == 'a' && buf[1] == '\0');
 }  }

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

CVSweb