Commit 3569ac17 authored by Mike Gabriel's avatar Mike Gabriel

nx-X11/lib/X11/lcFile.c: Drop conditional always evaluating as True.

Backported from X.org, patch found in janitor cleanup commit... commit 8ba0ca32a63c532f128bdca7f1bf982cab8e12be Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> Date: Wed Jan 28 20:31:42 2009 -0200
parent 365fa4f3
...@@ -437,8 +437,7 @@ _XlcFileName( ...@@ -437,8 +437,7 @@ _XlcFileName(
char buf[PATH_MAX], *name; char buf[PATH_MAX], *name;
name = NULL; name = NULL;
if ((5 + (args[i] ? strlen (args[i]) : 0) + if ((5 + (args[i] ? strlen (args[i]) : 0) + strlen(cat)) < PATH_MAX) {
(cat ? strlen (cat) : 0)) < PATH_MAX) {
sprintf(buf, "%s/%s.dir", args[i], cat); sprintf(buf, "%s/%s.dir", args[i], cat);
name = resolve_name(siname, buf, RtoL); name = resolve_name(siname, buf, RtoL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment