diff options
Diffstat (limited to 'mg_image_provider.c')
-rw-r--r-- | mg_image_provider.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mg_image_provider.c b/mg_image_provider.c index aeab5ec..801c504 100644 --- a/mg_image_provider.c +++ b/mg_image_provider.c @@ -362,7 +362,7 @@ void mgImageProvider::Action() char *tmp; - asprintf( &tmp, "muggle-image-convert \"%s\" \"%s\"", filename.c_str(), tmpFile.c_str() ); + msprintf( &tmp, "muggle-image-convert \"%s\" \"%s\"", filename.c_str(), tmpFile.c_str() ); system( (const char*) tmp ); free(tmp); @@ -406,7 +406,7 @@ void mgImageProvider::writeImage( TagLib::ByteVector &image, int num, string &im // save image_data to temporary file char *buf; - asprintf( &buf, "%s/image-%d.jpg", image_cache.c_str(), num ); + msprintf( &buf, "%s/image-%d.jpg", image_cache.c_str(), num ); FILE *f = fopen( buf, "w+" ); fwrite( image_data, sizeof(char), len, f ); |