rpms/gyachi/EL-5 theme_support.patch,NONE,1.1

Gregory D Hosler (ghosler) fedora-extras-commits at redhat.com
Thu Jun 19 14:51:20 UTC 2008


Author: ghosler

Update of /cvs/pkgs/rpms/gyachi/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31598

Added Files:
	theme_support.patch 
Log Message:
removed gnu extension strchrnul from theme_support.c



theme_support.patch:

--- NEW FILE theme_support.patch ---
diff -ru -x '*~' -N gyachi-1.1.36.cvs/lib/theme_support.c gyachi-1.1.36.patch/lib/theme_support.c
--- gyachi-1.1.36.cvs/lib/theme_support.c	2008-06-15 23:01:17.000000000 +0800
+++ gyachi-1.1.36.patch/lib/theme_support.c	2008-06-19 22:34:18.000000000 +0800
@@ -87,8 +87,12 @@
 {
 	GYACHI_ICON_DEF *icon_def;
 	char *name=strdup(filename);
+	char ext;
 
-	*strchrnul(name, '.') = 0;
+	ext = strchr(name, '.');
+	if (ext) {
+		*ext = NULL;
+	}
 
 	for (icon_def = gyachi_icons;
 	     icon_def->filename;




More information about the fedora-extras-commits mailing list