]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/console/panic_ui/genimage.c
xnu-1228.tar.gz
[apple/xnu.git] / osfmk / console / panic_ui / genimage.c
index 2c1ecd110592f6f3172abfbbe91c9134106a592f..533e6b32bab003dbbd12c2d03c59020ddc47e908 100644 (file)
@@ -1518,7 +1518,7 @@ WriteQTRawFile( FILE * ostream, unsigned char * data, int height, int width, int
        image_header.vRes =  72 << 16;
        image_header.dataSize = csize;
        image_header.frameCount = 1;
-       strcpy(image_header.name, " None"); 
+       strlcpy(image_header.name, " None", sizeof(image_header.name)); 
        image_header.name[0] = 4;
        image_header.depth = depth*8;
        image_header.clutID = (depth==1) ? 8 : -1;