Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
rasky
libvncserver
Commits
35784444
Commit
35784444
authored
Dec 30, 2002
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed cargs (segmentation fault!)
parent
49c2d82d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
18 deletions
+14
-18
CHANGES
CHANGES
+3
-0
cargs.c
cargs.c
+11
-18
No files found.
CHANGES
View file @
35784444
fixed long standing cargs bug
Even better x11vnc from Karl J. Runge! (supports different kbd layouts of
client/server)
Better x11vnc from Karl J. Runge!
fixed severe bug (Const Kaplinsky)
got patch from Const Kaplisnky with CursorPosUpdate encoding and some Docs
...
...
cargs.c
View file @
35784444
...
...
@@ -53,7 +53,7 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[])
if
(
!
argc
)
return
;
for
(
i
=
i1
=
1
;
i
<
*
argc
;
i
++
)
{
for
(
i
=
i1
=
1
;
i
<
*
argc
;)
{
if
(
strcmp
(
argv
[
i
],
"-help"
)
==
0
)
{
rfbUsage
();
exit
(
1
);
...
...
@@ -73,7 +73,7 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[])
passwds
[
1
]
=
0
;
rfbScreen
->
rfbAuthPasswdData
=
(
void
*
)
passwds
;
rfbScreen
->
passwordCheck
=
rfbCheckPasswordByList
;
}
else
if
(
strcmp
(
argv
[
i
],
"-deferupdate"
)
==
0
)
{
/* -de
sktop desktop-name
*/
}
else
if
(
strcmp
(
argv
[
i
],
"-deferupdate"
)
==
0
)
{
/* -de
ferupdate milliseconds
*/
if
(
i
+
1
>=
*
argc
)
rfbUsage
();
rfbScreen
->
rfbDeferUpdateTime
=
atoi
(
argv
[
++
i
]);
}
else
if
(
strcmp
(
argv
[
i
],
"-desktop"
)
==
0
)
{
/* -desktop desktop-name */
...
...
@@ -85,19 +85,14 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[])
rfbScreen
->
rfbNeverShared
=
TRUE
;
}
else
if
(
strcmp
(
argv
[
i
],
"-dontdisconnect"
)
==
0
)
{
rfbScreen
->
rfbDontDisconnect
=
TRUE
;
}
else
if
(
strcmp
(
argv
[
i
],
"-width"
)
==
0
)
{
rfbScreen
->
width
=
atoi
(
argv
[
++
i
]);
}
else
if
(
strcmp
(
argv
[
i
],
"-height"
)
==
0
)
{
rfbScreen
->
height
=
atoi
(
argv
[
++
i
]);
}
else
{
/* we just remove the processed arguments from the list */
if
(
i
!=
i1
)
rfbPurgeArguments
(
argc
,
&
i
,
i1
-
i
,
argv
);
i1
++
;
i
++
;
rfbPurgeArguments
(
argc
,
&
i1
,
i
-
i1
,
argv
);
}
i1
++
;
i
=
i1
;
}
*
argc
-=
i
-
i1
;
}
void
rfbSizeUsage
()
...
...
@@ -113,7 +108,7 @@ rfbProcessSizeArguments(int* width,int* height,int* bpp,int* argc, char *argv[])
int
i
,
i1
;
if
(
!
argc
)
return
;
for
(
i
=
i1
=
1
;
i
<
*
argc
-
1
;
i
++
)
{
for
(
i
=
i1
=
1
;
i
<
*
argc
-
1
;)
{
if
(
strcmp
(
argv
[
i
],
"-bpp"
)
==
0
)
{
*
bpp
=
atoi
(
argv
[
++
i
]);
}
else
if
(
strcmp
(
argv
[
i
],
"-width"
)
==
0
)
{
...
...
@@ -122,14 +117,12 @@ rfbProcessSizeArguments(int* width,int* height,int* bpp,int* argc, char *argv[])
*
height
=
atoi
(
argv
[
++
i
]);
}
else
{
/* we just remove the processed arguments from the list */
if
(
i
!=
i1
)
{
memmove
(
argv
+
i1
,
argv
+
i
,
sizeof
(
char
*
)
*
(
*
argc
-
i
));
*
argc
-=
i
-
i1
;
if
(
i
!=
i1
)
if
(
i
!=
i1
)
rfbPurgeArguments
(
argc
,
&
i1
,
i
-
i1
,
argv
)
;
}
i1
++
;
i
=
i1
-
1
;
}
i
=
i1
;
}
*
argc
-=
i
-
i1
;
}
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