[Sheepdog] [PATCH 8/9] sizeof problem: sizeof was applied to a global definition, rather then a local
Steven Dake
sdake at redhat.com
Mon May 17 18:37:16 CEST 2010
Have sizeof apply to proper local variable.
Signed-off-by: Steven Dake <sdake at redhat.com>
---
collie/collie.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/collie/collie.c b/collie/collie.c
index ce3d086..d9f26fc 100644
--- a/collie/collie.c
+++ b/collie/collie.c
@@ -919,7 +919,7 @@ static int cluster_info(int argc, char **argv)
ti = logs[i].ctime >> 32;
localtime_r(&ti, &tm);
- strftime(time_str, sizeof(time), "%y-%m-%d %H:%M:%S", &tm);
+ strftime(time_str, sizeof(time_str), "%y-%m-%d %H:%M:%S", &tm);
printf("%s %6d", time_str, logs[i].epoch);
printf(" [");
--
1.6.2.5
More information about the sheepdog
mailing list