summaryrefslogtreecommitdiffstats
path: root/planner.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 /planner.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 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index fce004e02..b4400a88b 100644
--- a/planner.c
+++ b/planner.c
@@ -651,7 +651,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
snprintf(buffer + len, sizeof(buffer) - len,
translate("gettextFromC", "<span style='color: red;'>Warning:</span> "
"high pO2 value %.2f at %d:%02u with gas %s at depth %.*f %s<br>"),
- pO2 / 1000.0, FRACTION(dp->time, 60), gasname(&dp->gasmix), depth_value, decimals, depth_unit);
+ pO2 / 1000.0, FRACTION(dp->time, 60), gasname(&dp->gasmix), decimals, depth_value, depth_unit);
}
}
dp = dp->next;