[ playerstage-Bugs-3181470 ] sizeof should be strlen?

"SourceForge.net" <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Bugs item #3181470, was opened at 2011-02-14 15:16
Message generated for change (Tracker Item Submitted) made by jashar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=3181470&group_id=42445

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: (deprecated)libplayerc/pyplayerc
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jayen Ashar (jashar)
Assigned to: Andrew Howard (inspectorg)
Summary: sizeof should be strlen?

Initial Comment:
Hi, on line 90 of device.c (http://playerstage.svn.sourceforge.net/viewvc/playerstage/code/player/trunk/client_libs/libplayerc/device.c?annotate=9036 ), I believe the sizeof should be strlen, as that parameter is used in strncpy on line 1082 of client.c (http://playerstage.svn.sourceforge.net/viewvc/playerstage/code/player/trunk/client_libs/libplayerc/client.c?annotate=9036 ).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=3181470&group_id=42445

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.