diff options
-rw-r--r-- | MdePkg/Library/BasePrintLib/PrintLib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MdePkg/Library/BasePrintLib/PrintLib.c b/MdePkg/Library/BasePrintLib/PrintLib.c index 145ca3494a..548ec5490f 100644 --- a/MdePkg/Library/BasePrintLib/PrintLib.c +++ b/MdePkg/Library/BasePrintLib/PrintLib.c @@ -355,6 +355,12 @@ BasePrintLibVSPrint ( Flags &= (~ARGUMENT_UNICODE);
ArgumentString = "<null string>";
}
+ //
+ // Set the default precision for string to be zero if not specified.
+ //
+ if ((Flags & PRECISION) == 0) {
+ Precision = 0;
+ }
break;
case 'c':
|