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
d7d2aeea
Unverified
Commit
d7d2aeea
authored
Mar 27, 2017
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/libX11-HEAD' into 3.6.x
Fixes ArcticaProject/nx-libs#400. Attributes GH PR #414:
https://github.com/ArcticaProject/nx-libs/pull/414
am into a topic branch.
parents
ac03b517
00405b27
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
FontNames.c
nx-X11/lib/X11/FontNames.c
+4
-2
XlibInt.c
nx-X11/lib/X11/XlibInt.c
+10
-0
No files found.
nx-X11/lib/X11/FontNames.c
View file @
d7d2aeea
...
...
@@ -43,6 +43,7 @@ int *actualCount) /* RETURN */
register
int
length
;
char
**
flist
=
NULL
;
char
*
ch
=
NULL
;
char
*
chstart
;
char
*
chend
;
int
count
=
0
;
xListFontsReply
rep
;
...
...
@@ -86,6 +87,7 @@ int *actualCount) /* RETURN */
/*
* unpack into null terminated strings.
*/
chstart
=
ch
;
chend
=
ch
+
(
rlen
+
1
);
length
=
*
(
unsigned
char
*
)
ch
;
*
ch
=
1
;
/* make sure it is non-zero for XFreeFontNames */
...
...
@@ -98,14 +100,14 @@ int *actualCount) /* RETURN */
*
ch
=
'\0'
;
/* and replace with null-termination */
count
++
;
}
else
{
Xfree
(
ch
);
Xfree
(
ch
start
);
Xfree
(
flist
);
flist
=
NULL
;
count
=
0
;
break
;
}
}
else
{
Xfree
(
ch
);
Xfree
(
ch
start
);
Xfree
(
flist
);
flist
=
NULL
;
count
=
0
;
...
...
nx-X11/lib/X11/XlibInt.c
View file @
d7d2aeea
...
...
@@ -3604,6 +3604,16 @@ int _XDefaultError(
XErrorEvent
*
event
)
{
if
(
_XPrintDefaultError
(
dpy
,
event
,
stderr
)
==
0
)
return
0
;
/*
* Store in dpy flags that the client is exiting on an unhandled XError
* (pretend it is an IOError, since the application is dying anyway it
* does not make a difference).
* This is useful for _XReply not to hang if the application makes Xlib
* calls in _fini as part of process termination.
*/
dpy
->
flags
|=
XlibDisplayIOError
;
exit
(
1
);
/*NOTREACHED*/
}
...
...
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