diff options
Diffstat (limited to 'arts')
-rw-r--r-- | arts/runtime/artsbuilderloader_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arts/runtime/artsbuilderloader_impl.cc b/arts/runtime/artsbuilderloader_impl.cc index ee009417..238daae2 100644 --- a/arts/runtime/artsbuilderloader_impl.cc +++ b/arts/runtime/artsbuilderloader_impl.cc @@ -247,7 +247,7 @@ public: if( stat(filename.c_str(), &st) == 0 ) { char mtime[32]; - sprintf(mtime,"[%ld]",st.st_mtime); + snprintf(mtime,sizeof(mtime),"[%.0f]",difftime(st.st_mtime, (time_t)0)); result += filename + mtime; } else |