[Lldb-commits] [lldb] r155640 - /lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp

Greg Clayton gclayton at apple.com
Thu Apr 26 10:09:39 PDT 2012


Author: gclayton
Date: Thu Apr 26 12:09:38 2012
New Revision: 155640

URL: http://llvm.org/viewvc/llvm-project?rev=155640&view=rev
Log:
Patch from Filipe Cabecinhas.


Modified:
    lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp

Modified: lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp?rev=155640&r1=155639&r2=155640&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp (original)
+++ lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp Thu Apr 26 12:09:38 2012
@@ -119,7 +119,7 @@
                             if (pos < end)
                                 pos += snprintf(pos, end - pos, "%d", (int32_t)value.v_sint8[i]);
                         }
-                        strncat(str, " }", sizeof(str));
+                        strlcat(str, " }", sizeof(str));
                         break;
 
                     default:
@@ -201,7 +201,7 @@
                         }
                         break;
                     }
-                    strncat(str, " }", sizeof(str));
+                    strlcat(str, " }", sizeof(str));
                 }
                 else
                 {





More information about the lldb-commits mailing list