]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch
- add fixes and useful features from Mandriva
[packages/rpm.git] / rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch
diff --git a/rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch b/rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch
new file mode 100644 (file)
index 0000000..a18a408
--- /dev/null
@@ -0,0 +1,11 @@
+--- rpm-5.4.5/lib/rpmfc.c.sizeof~      2012-03-05 21:01:46.845529682 +0100
++++ rpm-5.4.5/lib/rpmfc.c      2012-03-05 21:01:51.679533439 +0100
+@@ -909,7 +909,7 @@ static int rpmfcSCRIPT(rpmfc fc)
+       if (defaultdocdir == NULL || *defaultdocdir == '\0') 
+             defaultdocdir = "/usr/share/doc";
+-      if (strncmp(fn, defaultdocdir, sizeof(defaultdocdir)-1)) {
++      if (strncmp(fn, defaultdocdir, strlen(defaultdocdir))) {
+           if (fc->fcolor->vals[fc->ix] & RPMFC_MODULE)
+               xx = rpmfcHelper(fc, 'P', "perl");
+           if (is_executable || (fc->fcolor->vals[fc->ix] & RPMFC_MODULE))
This page took 0.043738 seconds and 4 git commands to generate.