replaced depricated p2cstr with CopyPascalStringToC for OSX.
[blender.git] / source / blender / quicktime / apple / quicktime_export.c
index c96836b7394ececf94b58c4392c0de25246c0e2f..b66b495d5626bbec0a3c1e1e7ca178bc3b0ef9fe 100644 (file)
@@ -570,6 +570,7 @@ int get_qtcodec_settings(void)
 //     Component c = 0;
 //     ComponentDescription cd;
        CodecInfo ci;
+       char str[255];
 
 //     cd.componentType = StandardCompressionType;
 //     cd.componentSubType = StandardCompressionSubType;
@@ -632,7 +633,8 @@ int get_qtcodec_settings(void)
        SCGetInfo(qcdx->theComponent, scDataRateSettingsType,   &qcdx->aDataRateSetting);
 
        GetCodecInfo (&ci, qcdx->gSpatialSettings.codecType, 0);
-       sprintf(qtcdname,"Codec: %s", p2cstr(ci.typeName));
+       CopyPascalStringToC(ci.typeName, str);
+       sprintf(qtcdname,"Codec: %s", str);
 
        // framerate jugglin'