Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
881cb5e1
Commit
881cb5e1
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Use use strlcpy() in x_cio.c without the wrapper.
Reverts gen_defs/genwrap craziness.
parent
c64357b9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!455
Update branch with changes from master
Pipeline
#6261
passed
1 year ago
Stage: build
Stage: test
Stage: cleanup
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/conio/x_cio.c
+2
-2
2 additions, 2 deletions
src/conio/x_cio.c
src/xpdev/gen_defs.h
+0
-2
0 additions, 2 deletions
src/xpdev/gen_defs.h
with
2 additions
and
4 deletions
src/conio/x_cio.c
+
2
−
2
View file @
881cb5e1
...
@@ -107,7 +107,7 @@ void x_setname(const char *name)
...
@@ -107,7 +107,7 @@ void x_setname(const char *name)
struct
x11_local_event
ev
=
{
0
};
struct
x11_local_event
ev
=
{
0
};
ev
.
type
=
X11_LOCAL_SETNAME
;
ev
.
type
=
X11_LOCAL_SETNAME
;
SAFECOPY
(
ev
.
data
.
name
,
name
);
strlcpy
(
ev
.
data
.
name
,
name
,
sizeof
(
ev
.
data
.
name
)
);
write_event
(
&
ev
);
write_event
(
&
ev
);
}
}
...
@@ -116,7 +116,7 @@ void x_settitle(const char *title)
...
@@ -116,7 +116,7 @@ void x_settitle(const char *title)
struct
x11_local_event
ev
=
{
0
};
struct
x11_local_event
ev
=
{
0
};
ev
.
type
=
X11_LOCAL_SETTITLE
;
ev
.
type
=
X11_LOCAL_SETTITLE
;
SAFECOPY
(
ev
.
data
.
title
,
title
);
strlcpy
(
ev
.
data
.
title
,
title
,
sizeof
(
ev
.
data
.
title
)
);
write_event
(
&
ev
);
write_event
(
&
ev
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/gen_defs.h
+
0
−
2
View file @
881cb5e1
...
@@ -551,6 +551,4 @@ typedef struct {
...
@@ -551,6 +551,4 @@ typedef struct {
#include
<SDL.h>
#include
<SDL.h>
#endif
#endif
#include
"genwrap.h"
// For strlcpy()/strlcat() -- yes, it needs to be down here.
#endif
/* Don't add anything after this #endif statement */
#endif
/* Don't add anything after this #endif statement */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment