]> granicus.if.org Git - graphviz/commitdiff
jpeg_size: mark 'standalone_markers' const
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 17 Nov 2021 03:10:53 +0000 (19:10 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Nov 2021 01:09:14 +0000 (17:09 -0800)
lib/gvc/gvusershape.c

index 5cff1caff3ad7c1a19a7ebbe62c224c026961d84..c5d2c5485e3d1dfe1e9b56f1d080035fe54e1af0 100644 (file)
@@ -339,7 +339,7 @@ static void jpeg_size (usershape_t *us) {
     /* These are the markers that follow 0xff in the file.
      * Other markers implicitly have a 2-byte length field that follows.
      */
-    static unsigned char standalone_markers [] = {
+    static const unsigned char standalone_markers[] = {
         0x01,                       /* Temporary */
         0xd0, 0xd1, 0xd2, 0xd3,     /* Reset */
             0xd4, 0xd5, 0xd6,