From bf82ac06bfd9b40dadcca3b16da24a75eabe8e6f Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sat, 28 Aug 2010 23:11:59 +0000 Subject: output_dyn_value() : don't use strlen() to check string emptiness git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27933 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/misc.c b/apps/misc.c index 0ab26b0831..c35e2c5001 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -125,7 +125,7 @@ char *output_dyn_value(char *buf, int buf_size, int value, if (buf) { - if (strlen(tbuf)) + if (*tbuf) snprintf(buf, buf_size, "%d%s%s%s", value, str(LANG_POINT), tbuf, P2STR(units[unit_no])); else -- cgit v1.2.3