checked/changed all sprintf calls
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user