Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
70327993
Commit
70327993
authored
Mar 17, 2009
by
Alan Coopersmith
Committed by
Ulrich Sibiller
Oct 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When makekeys fails to find a good hash, print error instead of divide-by-zero
Signed-off-by:
Alan Coopersmith
<
alan.coopersmith@sun.com
>
parent
f5736540
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
makekeys.c
nx-X11/lib/X11/util/makekeys.c
+10
-0
No files found.
nx-X11/lib/X11/util/makekeys.c
View file @
70327993
...
...
@@ -150,6 +150,11 @@ next1: ;
}
z
=
best_z
;
if
(
z
==
0
)
{
fprintf
(
stderr
,
"makekeys: failed to find small enough hash!
\n
"
"Try increasing KTNUM in makekeys.c
\n
"
);
exit
(
1
);
}
printf
(
"#ifdef NEEDKTABLE
\n
"
);
printf
(
"const unsigned char _XkeyTable[] = {
\n
"
);
printf
(
"0,
\n
"
);
...
...
@@ -230,6 +235,11 @@ next2: ;
}
z
=
best_z
;
if
(
z
==
0
)
{
fprintf
(
stderr
,
"makekeys: failed to find small enough hash!
\n
"
"Try increasing KTNUM in makekeys.c
\n
"
);
exit
(
1
);
}
for
(
i
=
z
;
--
i
>=
0
;)
offsets
[
i
]
=
0
;
for
(
i
=
0
;
i
<
ksnum
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment