]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch
- added rpm-double_check_unpackaged_subdirs patch (do a strict check when Bloom filte...
[packages/rpm.git] / rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch
1 --- rpm-5.4.5/lib/rpmfc.c.sizeof~       2012-03-05 21:01:46.845529682 +0100
2 +++ rpm-5.4.5/lib/rpmfc.c       2012-03-05 21:01:51.679533439 +0100
3 @@ -909,7 +909,7 @@ static int rpmfcSCRIPT(rpmfc fc)
4         if (defaultdocdir == NULL || *defaultdocdir == '\0') 
5              defaultdocdir = "/usr/share/doc";
6  
7 -       if (strncmp(fn, defaultdocdir, sizeof(defaultdocdir)-1)) {
8 +       if (strncmp(fn, defaultdocdir, strlen(defaultdocdir))) {
9             if (fc->fcolor->vals[fc->ix] & RPMFC_MODULE)
10                 xx = rpmfcHelper(fc, 'P', "perl");
11             if (is_executable || (fc->fcolor->vals[fc->ix] & RPMFC_MODULE))
This page took 0.026843 seconds and 3 git commands to generate.