From bfa054283680686ba98fce6d68324ae6892b3aa5 Mon Sep 17 00:00:00 2001 From: sobomax Date: Fri, 30 Aug 2002 16:18:45 +0000 Subject: Avoid calling strncmp(3) with two arguments - use strcmp(3) instead. PR: 41257 Submitted by: Simon 'corecode' Schubert --- x11-themes/xenostep/Makefile | 1 + x11-themes/xenostep/files/patch-XenoStep_theme_draw.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 x11-themes/xenostep/files/patch-XenoStep_theme_draw.c (limited to 'x11-themes/xenostep') diff --git a/x11-themes/xenostep/Makefile b/x11-themes/xenostep/Makefile index b470310..7e625d1 100644 --- a/x11-themes/xenostep/Makefile +++ b/x11-themes/xenostep/Makefile @@ -7,6 +7,7 @@ PORTNAME= xenostep PORTVERSION= 200011270836 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_THEMES} MASTER_SITE_SUBDIR= gtk diff --git a/x11-themes/xenostep/files/patch-XenoStep_theme_draw.c b/x11-themes/xenostep/files/patch-XenoStep_theme_draw.c new file mode 100644 index 0000000..1f1fbf2 --- /dev/null +++ b/x11-themes/xenostep/files/patch-XenoStep_theme_draw.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- XenoStep_theme_draw.c 2002/08/30 16:16:48 1.1 ++++ XenoStep_theme_draw.c 2002/08/30 16:17:08 +@@ -604,7 +604,7 @@ + width-=2; height-=2; + } + } else if (GTK_IS_BUTTON(widget)) { +- if (detail && !strncmp("buttondefault", detail)) { ++ if (detail && !strcmp("buttondefault", detail)) { + newshadow = ((XenoStepThemeData *)style->engine_data)->buttondef_shadow; + } else + if (!GTK_IS_TOGGLE_BUTTON(widget) && state_type == GTK_STATE_ACTIVE) { -- cgit v1.1