]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix error identified by cppcheck 1.52.
authorRob Norris <rw_norris@hotmail.com>
Sat, 7 Jan 2012 12:44:31 +0000 (12:44 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sat, 7 Jan 2012 13:11:06 +0000 (13:11 +0000)
Error is index out of bounds, from old commit 941aa6e9dcad8baa3952be9fc50c7635be8eaab4.

src/viktrwlayer.c

index c87f58a7f63d46cfb0f6379ca404513f56d52828..8bad53117ee1e40d8282693620c21435b3ead75b 100644 (file)
@@ -5666,7 +5666,7 @@ static gpointer tool_show_picture_create ( VikWindow *vw, VikViewport *vvp)
 }
 
 /* Params are: vvp, event, last match found or NULL */
-static void tool_show_picture_wp ( char *name, VikWaypoint *wp, gpointer params[2] )
+static void tool_show_picture_wp ( char *name, VikWaypoint *wp, gpointer params[3] )
 {
   if ( wp->image && wp->visible )
   {