From: Hans-Bernhard B. <br...@us...> - 2010-03-04 21:11:52
|
Update of /cvsroot/cscope/cscope/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25779/src Modified Files: dir.c Log Message: snprintf format precision arguments need to be int, not size_t. Index: dir.c =================================================================== RCS file: /cvsroot/cscope/cscope/src/dir.c,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -r1.31 -r1.32 *** dir.c 10 Apr 2009 13:39:23 -0000 1.31 --- dir.c 4 Mar 2010 21:11:43 -0000 1.32 *************** *** 210,214 **** for (i = 1; i < nvpsrcdirs; ++i) { snprintf(path, sizeof(path), "%.*s/%s", ! PATHLEN - 2 - dir_len, srcdirs[i], dir); addincdir(dir, path); --- 210,214 ---- for (i = 1; i < nvpsrcdirs; ++i) { snprintf(path, sizeof(path), "%.*s/%s", ! (int)(PATHLEN - 2 - dir_len), srcdirs[i], dir); addincdir(dir, path); *************** *** 609,613 **** /* don't include the file from two directories */ snprintf(name, sizeof(name), "%.*s/%s", ! PATHLEN - 2 - file_len, incnames[i], file); if (infilelist(name) == YES) { --- 609,613 ---- /* don't include the file from two directories */ snprintf(name, sizeof(name), "%.*s/%s", ! (int)(PATHLEN - 2 - file_len), incnames[i], file); if (infilelist(name) == YES) { *************** *** 616,620 **** /* make sure it exists and is readable */ snprintf(path, sizeof(path), "%.*s/%s", ! PATHLEN - 2 - file_len, incdirs[i], file); if (access(compath(path), READ) == 0) { --- 616,620 ---- /* make sure it exists and is readable */ snprintf(path, sizeof(path), "%.*s/%s", ! (int)(PATHLEN - 2 - file_len), incdirs[i], file); if (access(compath(path), READ) == 0) { |