]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix bad SQL timestamp in M_CATALOG
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 1 Dec 2006 13:14:49 +0000 (13:14 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 1 Dec 2006 13:14:49 +0000 (13:14 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3724 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/message.c

index 939498887455ebab4634ecd676cb5d9710a6c138..9b0f3069e58e04fa0a86de3f651cb481a2bbcba7 100755 (executable)
@@ -644,7 +644,7 @@ void dispatch_message(JCR *jcr, int type, time_t mtime, char *msg)
                    esc_msg = check_pool_memory_size(esc_msg, len*2+1);
                    p_sql_escape(esc_msg, msg, len);
 
-                   bstrftimes(dt, sizeof(dt), mtime);
+                   bstrutime(dt, sizeof(dt), mtime);
                    Mmsg(cmd, "INSERT INTO Log (JobId, Time, LogText) VALUES (%s,'%s','%s')",
                          edit_int64(jcr->JobId, ed1), dt, esc_msg);
                    p_sql_query(jcr, cmd);