~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/Twitterizer/Twitterizer2/Methods/Account/UpdateProfileImageCommand.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#endif
43
43
    internal class UpdateProfileImageCommand : TwitterCommand<TwitterUser>
44
44
    {
45
 
        private byte[] imageData;
 
45
        private readonly byte[] imageData;
46
46
 
47
47
        /// <summary>
48
48
        /// Initializes a new instance of the <see cref="UpdateProfileImageCommand"/> class.
63
63
                throw new ArithmeticException("Image data cannot be null or zero length.");
64
64
            }
65
65
 
66
 
            if (image.Length > 89600)
 
66
            if (image.Length > 716800)
67
67
            {
68
68
                throw new ArithmeticException("Image cannot exceed 700Kb in size.");
69
69
            }