summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2ef357)
raw | patch | inline | side by side (parent: e2ef357)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 18 Dec 2006 14:17:48 +0000 (15:17 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 18 Dec 2006 20:04:07 +0000 (21:04 +0100) |
Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/email.c | patch | blob | history |
diff --git a/src/email.c b/src/email.c
index 7c23e9b4fe2d478441efcce640afd291b54208c0..9fbe14c4658e83388775de894616428feaf57246 100644 (file)
--- a/src/email.c
+++ b/src/email.c
char buf[BUFSIZE] = "";
int len = 0;
- if (0 == value)
- return;
-
len = snprintf (buf, BUFSIZE, "%u:%i", (unsigned int)curtime, value);
if ((len < 0) || (len >= BUFSIZE))
return;
char buf[BUFSIZE] = "";
int len = 0;
- if (0.0 == value)
- return;
-
len = snprintf (buf, BUFSIZE, "%u:%.2f", (unsigned int)curtime, value);
if ((len < 0) || (len >= BUFSIZE))
return;