summaryrefslogtreecommitdiff
path: root/netspeed/src
diff options
context:
space:
mode:
Diffstat (limited to 'netspeed/src')
-rw-r--r--netspeed/src/netspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index 0fdcc3c0..e692d7da 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -380,7 +380,7 @@ update_quality_icon(MateNetspeedApplet *applet)
q = (applet->devinfo->qual);
q /= 25;
- q = CLAMP(q, 0, 3); /* q out of range would crash when accessing qual_surfaces[q] */
+ q = MIN (q, 3); /* q out of range would crash when accessing qual_surfaces[q] */
gtk_image_set_from_surface (GTK_IMAGE(applet->qual_pix), applet->qual_surfaces[q]);
}