Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
72c95116
Commit
72c95116
authored
Feb 23, 2018
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge sprintf -> snprintf
parent
92f4a90b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+4
-4
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
72c95116
...
...
@@ -4733,7 +4733,7 @@ int GeValue::scan( grow_tObject object)
memcpy
(
&
old_value
,
p
,
MIN
(
size
,
(
int
)
sizeof
(
old_value
)));
len
=
s
printf
(
buf
,
format
,
(
char
*
)
p
);
len
=
s
nprintf
(
buf
,
sizeof
(
buf
)
,
format
,
(
char
*
)
p
);
break
;
case
pwr_eType_Objid
:
{
int
sts
;
...
...
@@ -4771,7 +4771,7 @@ int GeValue::scan( grow_tObject object)
len
=
0
;
}
else
len
=
s
printf
(
buf
,
"%s"
,
name
);
len
=
s
nprintf
(
buf
,
sizeof
(
buf
)
,
"%s"
,
name
);
memcpy
(
&
old_value
,
&
objid
,
MIN
(
size
,
(
int
)
sizeof
(
old_value
)));
break
;
}
...
...
@@ -4809,7 +4809,7 @@ int GeValue::scan( grow_tObject object)
if
(
EVEN
(
sts
))
strcpy
(
name
,
""
);
}
len
=
s
printf
(
buf
,
"%s"
,
name
);
len
=
s
nprintf
(
buf
,
sizeof
(
buf
)
,
"%s"
,
name
);
memcpy
(
&
old_value
,
&
aref
,
MIN
(
size
,
(
int
)
sizeof
(
old_value
)));
break
;
}
...
...
@@ -4847,7 +4847,7 @@ int GeValue::scan( grow_tObject object)
if
(
EVEN
(
sts
))
strcpy
(
name
,
""
);
}
len
=
s
printf
(
buf
,
"%s"
,
name
);
len
=
s
nprintf
(
buf
,
sizeof
(
buf
)
,
"%s"
,
name
);
memcpy
(
&
old_value
,
&
dataref
,
MIN
(
size
,
(
int
)
sizeof
(
old_value
)));
break
;
}
...
...
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