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
92dc6dc4
Commit
92dc6dc4
authored
Nov 22, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* not allowed as input for ProString
parent
c19311ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
wb/lib/wb/src/wb_wnav.cpp
wb/lib/wb/src/wb_wnav.cpp
+9
-1
No files found.
wb/lib/wb/src/wb_wnav.cpp
View file @
92dc6dc4
/*
* Proview $Id: wb_wnav.cpp,v 1.2
8 2005-11-17 09:05:10
claes Exp $
* Proview $Id: wb_wnav.cpp,v 1.2
9 2005-11-22 12:30:48
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -195,8 +195,16 @@ int wnav_attr_string_to_value( ldh_tSesContext ldhses, int type_id, char *value
}
case
pwr_eType_Text
:
case
pwr_eType_String
:
{
if
(
(
int
)
strlen
(
value_str
)
>=
attr_size
)
return
WNAV__STRINGTOLONG
;
strncpy
(
(
char
*
)
buffer_ptr
,
value_str
,
min
(
attr_size
,
buff_size
));
break
;
}
case
pwr_eType_ProString
:
{
if
(
strchr
(
value_str
,
'*'
)
!=
0
)
return
WNAV__INPUT_SYNTAX
;
if
(
(
int
)
strlen
(
value_str
)
>=
attr_size
)
return
WNAV__STRINGTOLONG
;
strncpy
(
(
char
*
)
buffer_ptr
,
value_str
,
min
(
attr_size
,
buff_size
));
...
...
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