summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-07-19 11:30:05 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-07-19 11:30:05 +0200
commitd486a25f18e0d74ca315aec341cddf0df4060f05 (patch)
tree28967c4145182a4279c8d5f0c15e0df827e8da57 /runtime/msg.c
parentc67e6cb79e3e5b1eaa61662abc7c830fa084b533 (diff)
parente53c387e765011b71ea7de61addab4d5b1bb36d2 (diff)
downloadrsyslog-d486a25f18e0d74ca315aec341cddf0df4060f05.tar.gz
rsyslog-d486a25f18e0d74ca315aec341cddf0df4060f05.tar.bz2
rsyslog-d486a25f18e0d74ca315aec341cddf0df4060f05.zip
Merge branch 'v7-stable'
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index a227567e..67d957d1 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -2495,10 +2495,10 @@ static uchar *getNOW(eNOWType eNow, struct syslogTime *t)
memcpy(pBuf, two_digits[(int)t->hour], 3);
break;
case NOW_HHOUR:
- memcpy(pBuf, two_digits[t->hour/30], 3);
+ memcpy(pBuf, two_digits[t->minute/30], 3);
break;
case NOW_QHOUR:
- memcpy(pBuf, two_digits[t->hour/15], 3);
+ memcpy(pBuf, two_digits[t->minute/15], 3);
break;
case NOW_MINUTE:
memcpy(pBuf, two_digits[(int)t->minute], 3);