projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix the color square spacing so that it works regardles of the fontsize
[rrdtool.git]
/
src
/
strftime.c
diff --git
a/src/strftime.c
b/src/strftime.c
index
f349bbf
..
3fb860f
100644
(file)
--- a/
src/strftime.c
+++ b/
src/strftime.c
@@
-278,7
+278,7
@@
typedef void *va_list;
*
*/
*
*/
-static int pow[5] = { 1, 10, 100, 1000, 10000 };
+static int pow
ers
[5] = { 1, 10, 100, 1000, 10000 };
/**
* static void strfmt(char *str, char *fmt);
/**
* static void strfmt(char *str, char *fmt);
@@
-316,8
+316,8
@@
static void strfmt(char *str, const char *fmt, ...)
ival = va_arg(vp, int);
while (ilen)
{
ival = va_arg(vp, int);
while (ilen)
{
- ival %= pow[ilen--];
- *str++ = (char)('0' + ival / pow[ilen]);
+ ival %= pow
ers
[ilen--];
+ *str++ = (char)('0' + ival / pow
ers
[ilen]);
}
}
}
}
}
}