aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-09 11:23:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-09 11:23:05 -0700
commita3ce3221fdd5edbd234675a2e8cbbc58dc16d11c (patch)
tree4fea36b171abbc1eaa5a1c25de246e2687541ab7 /profile.c
parent95cb4e85ee4ccf1fe6672e82eacd423c6720c201 (diff)
downloadsubsurface-a3ce3221fdd5edbd234675a2e8cbbc58dc16d11c.tar.gz
Fix incorrect argument order for %.*f
Strangely, *prinf() on Linux appears to do the right thing in either order (my guess is based on the type of the two values?), but on Windows things go badly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index db7a101f6..b40ef628c 100644
--- a/profile.c
+++ b/profile.c
@@ -1251,7 +1251,7 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
put_format(b, translate("gettextFromC", "V: %.1f%s\n"), speedvalue, vertical_speed_unit);
sacvalue = get_volume_units(entry->sac, &decimals, &unit);
if (entry->sac && prefs.show_sac)
- put_format(b, translate("gettextFromC", "SAC: %.*f%s/min\n"), sacvalue, decimals, unit);
+ put_format(b, translate("gettextFromC", "SAC: %.*f%s/min\n"), decimals, sacvalue, unit);
if (entry->cns)
put_format(b, translate("gettextFromC", "CNS: %u%%\n"), entry->cns);
if (prefs.pp_graphs.po2)