checked/changed all sprintf calls

This commit is contained in:
Jean-Francois Dockes
2010-11-15 11:57:39 +01:00
parent c34e945299
commit 061ffda545
13 changed files with 31 additions and 20 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ BeagleQueueIndexer::processone(const string &path,
make_udi(udipath, "", udi);
LOGDEB(("BeagleQueueIndexer: prc1: udi [%s]\n", udi.c_str()));
char ascdate[20];
char ascdate[30];
sprintf(ascdate, "%ld", long(stp->st_mtime));
// We only process bookmarks or text/html and text/plain files.
+1 -1
View File
@@ -399,7 +399,7 @@ FsIndexer::processone(const std::string &fn, const struct stat *stp,
make_udi(fn, "", parent_udi);
Rcl::Doc doc;
const string plus("+");
char ascdate[20];
char ascdate[30];
sprintf(ascdate, "%ld", long(stp->st_mtime));
FileInterner::Status fis = FileInterner::FIAgain;
+1 -1
View File
@@ -242,7 +242,7 @@ const char *RclFAM::event_name(int code)
"FAMExists",
"FAMEndExist"
};
static char unknown_event[20];
static char unknown_event[30];
if (code < FAMChanged || code > FAMEndExist) {
sprintf(unknown_event, "unknown (%d)", code);