|
|
|
@ -178,7 +178,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
byte[] data = AsciiEncoding.GetBytes(value); |
|
|
|
byte[] data = Encoding.ASCII.GetBytes(value); |
|
|
|
this.dataStream.Write(data, 0, data.Length); |
|
|
|
return data.Length; |
|
|
|
} |
|
|
|
@ -215,7 +215,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
|
|
|
|
|
value = value.Substring(0, Math.Min(length - lengthAdjust, value.Length)); |
|
|
|
|
|
|
|
byte[] textData = AsciiEncoding.GetBytes(value); |
|
|
|
byte[] textData = Encoding.ASCII.GetBytes(value); |
|
|
|
int actualLength = Math.Min(length - lengthAdjust, textData.Length); |
|
|
|
this.dataStream.Write(textData, 0, actualLength); |
|
|
|
for (int i = 0; i < length - actualLength; i++) |
|
|
|
|