diff --git a/camlibs/sonix/library.c b/camlibs/sonix/library.c index 5fad4c3f1c..f12057a921 100644 --- a/camlibs/sonix/library.c +++ b/camlibs/sonix/library.c @@ -516,7 +516,7 @@ camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, n=camera->pl->num_pics; sonix_capture_image(camera->port); snprintf(name, 16, "sonix%03i.ppm",n+1); - snprintf(path->folder,1,"/"); + sprintf(path->folder,"/"); snprintf(path->name,16,"sonix%03i.ppm",n+1); gp_filesystem_append(camera->fs, "/", name, context); return GP_OK;