diff options
Diffstat (limited to 'mcs/class/corlib/System/String.cs')
-rw-r--r-- | mcs/class/corlib/System/String.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/corlib/System/String.cs b/mcs/class/corlib/System/String.cs index a2d5b21d125..06a9914af4e 100644 --- a/mcs/class/corlib/System/String.cs +++ b/mcs/class/corlib/System/String.cs @@ -1531,7 +1531,7 @@ namespace System if (totalWidth < this.length) return this; - if (this.Length == 0) + if (totalWidth == 0) return String.Empty; String tmp = InternalAllocateStr (totalWidth); |