- Timestamp:
- Mar 27, 2009 5:05:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/VBox/RTAssertShouldPanic-vbox.cpp
r18174 r18371 53 53 # include <iprt/thread.h> 54 54 # include <iprt/asm.h> 55 # include <iprt/param.h>56 55 #endif 57 56 … … 110 109 111 110 /* Try spawn the process. */ 112 char szCmd[512]; 113 char szExecName[RTPATH_MAX]; 114 if (!RTProcGetExecutableName((szExecName), sizeof(szExecName))) 115 strcpy(szExecName, ""); 116 RTStrPrintf(szCmd, sizeof(szCmd), "%s -p %d %s", pszGdb, RTProcSelf(), szExecName); 111 char szCmd[512]; 112 size_t cch = RTStrPrintf(szCmd, sizeof(szCmd), "%s -p %d ", pszGdb, RTProcSelf()); 113 if (cch < sizeof(szCmd)) 114 { 115 char *pszExecName = &szCmd[cch]; 116 if (!RTProcGetExecutableName(pszExecName, sizeof(szCmd) - cch)) 117 *pszExecName = '\0'; 118 } 117 119 const char *apszArgs[] = 118 120 {
Note:
See TracChangeset
for help on using the changeset viewer.