1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: lsi record for more than 40 characters doesn't work |
From: | Eric Norum via Tech-talk <[email protected]> |
To: | dmnr infn <[email protected]> |
Cc: | [email protected], [email protected] |
Date: | Mon, 2 Dec 2019 08:07:24 -0800 |
Others have dealt with the original question, but I’d like to add a followup. Conversion strings like the one shown in the original message are unsafe and should never be used. They can lead to buffer overflows and weird IOC behaviour. The capacity of the destination buffer should always be specified. Here, from the ASYN streamSCPI template, are the ’short’ and ‘long’ string versions of records to read SCPI identification strings:
--
Eric Norum [email protected] “Ah, the chance to be pedantic first thing on a Monday morning — what a great way to start the week." |