Skip to content
Snippets Groups Projects
Commit 397fa140 authored by Rene Brun's avatar Rene Brun
Browse files

From Bertrand:

Fix a bug with snprintf on windows when a precision was specified before
another argument.
(i.e. "%.4e %s")


git-svn-id: http://root.cern.ch/svn/root/trunk@17694 27541ba8-7e3a-0410-8455-c3a389f83636
parent 3f3d7319
No related branches found
No related tags found
No related merge requests found
/* @(#)root/clib:$Name: $:$Id: snprintf.c,v 1.8 2005/12/12 03:33:51 pcanal Exp $ */
/* @(#)root/clib:$Name: $:$Id: snprintf.c,v 1.9 2006/06/14 18:09:38 pcanal Exp $ */
/* Author: Tomi Salo & Fons Rademakers */
/*
......@@ -373,6 +373,7 @@ int vsnprintf(char *str, size_t size, const char *format, va_list ap)
if (precision >= 0) {
precision_specified = 1;
} else {
precision_specified = 0;
precision = 0;
}
format_ptr += status;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment