Skip to content

Commit

Permalink
fixed passed size to avoid overwrites (Coverity)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusmeissner committed Sep 1, 2013
1 parent aab436b commit 3527b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camlibs/spca50x/spca50x-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ spca50x_flash_get_file_name (CameraPrivateLibrary *pl, int index, char *name)
static int
spca50x_flash_get_number_from_file_name (CameraPrivateLibrary *pl, int index, int *file_number)
{
char name[13];
char name[14];

CHECK (spca50x_flash_get_file_name (pl, index, name));
if(sscanf(&(name[4]), "%d", file_number) != 1) /* skip "DSC_" */
Expand Down

0 comments on commit 3527b71

Please sign in to comment.