Changeset c510a7 for pcp/src/opt.c
- Timestamp:
- Apr 29, 2008, 12:19:51 PM (17 years ago)
- Children:
- e936b3
- Parents:
- 307fd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pcp/src/opt.c
r307fd1 rc510a7 182 182 */ 183 183 static int Start_ddd(char *Host, char *program, pid_t pid) { 184 char s[MAX DUMMYSTRING];184 char s[MAXSTRINGSIZE]; 185 185 if (Host) sprintf(s, "ddd -display %s %s %ld &", Host, program, (long int)pid); 186 186 else sprintf(s, "ddd %s %ld &", program, (long int)pid); … … 196 196 */ 197 197 static int Start_gdb(char *Host, char *program, pid_t pid) { 198 char s[MAX DUMMYSTRING];198 char s[MAXSTRINGSIZE]; 199 199 if (Host) sprintf(s, "xterm -display %s -e gdb %s %ld &", Host, program, (long int)pid); 200 200 else sprintf(s, "xterm -e gdb %s %ld &", program, (long int)pid); … … 210 210 */ 211 211 static int Start_dbx(char *Host, char *program, pid_t pid) { 212 char s[MAX DUMMYSTRING];212 char s[MAXSTRINGSIZE]; 213 213 program = program; 214 214 if (Host) sprintf(s, "xterm -display %s -e dbx -p %ld &", Host, (long int)pid); … … 225 225 */ 226 226 static int Start_cvd(char *Host, char *program, pid_t pid) { 227 char s[MAX DUMMYSTRING];227 char s[MAXSTRINGSIZE]; 228 228 program = program; 229 229 if (Host) sprintf(s, "cvd -pid %ld -display %s &", (long int)pid, Host); … … 240 240 */ 241 241 static int Start_totalview(char *Host, char *program, pid_t pid) { 242 char s[MAX DUMMYSTRING];242 char s[MAXSTRINGSIZE]; 243 243 int myrank = 0; 244 244 MPI_Comm_rank(MPI_COMM_WORLD, &myrank); … … 257 257 */ 258 258 static int Start_ups(char *Host, char *program, pid_t pid) { 259 char s[MAX DUMMYSTRING];259 char s[MAXSTRINGSIZE]; 260 260 if (Host) sprintf(s, "ups -display %s %s %ld &", Host, program, (long int)pid); 261 261 else sprintf(s, "ups %s %ld &", program, (long int)pid); … … 271 271 */ 272 272 void StartDebugger(void) { 273 char Host[MAX DUMMYSTRING] = "", Debugger[MAXDUMMYSTRING] = "";273 char Host[MAXSTRINGSIZE] = "", Debugger[MAXSTRINGSIZE] = ""; 274 274 char *host_ptr = Host; 275 275 int (*Debugger_call) (char *, char *, pid_t);
Note:
See TracChangeset
for help on using the changeset viewer.