[Libsysio-commit] HEAD: libsysio/tests test_path.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2006-01-03 13:33:17
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11065 Modified Files: test_path.c Log Message: Passing character sount (a ssize_t) to printf as a length specifier was incorrect. It should be an int. Fixed via cast. Index: test_path.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_path.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -w -b -B -p -r1.12 -r1.13 --- test_path.c 28 Oct 2005 16:42:26 -0000 1.12 +++ test_path.c 3 Jan 2006 13:33:06 -0000 1.13 @@ -208,7 +208,7 @@ statit(const char *path) } (void )printf("%s: %c", path, t); if (S_ISLNK(stbuf.st_mode) && (size_t )cc < sizeof(buf)) - (void )printf(" %.*s", cc, buf); + (void )printf(" %.*s", (int )cc, buf); (void )putchar('\n'); return 0; |