Changeset f98c74e for functions.c
- Timestamp:
- Apr 5, 2009, 7:36:53 PM (15 years ago)
- Branches:
- owl
- Children:
- 51b6c7c
- Parents:
- 9948234
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
re01449c rf98c74e 290 290 { 291 291 owl_editwin *e; 292 char buff[1024];292 char *buff; 293 293 owl_zwrite z; 294 294 int ret; … … 320 320 owl_editwin_clear(e); 321 321 owl_editwin_set_dotsend(e); 322 strcpy(buff, "----> "); 323 strcat(buff, line); 324 strcat(buff, "\n"); 322 buff=owl_sprintf("----> %s\n", line); 325 323 owl_editwin_set_locktext(e, buff); 326 324 327 /* make it active */328 325 owl_global_set_typwin_active(&g); 329 326 330 327 owl_global_set_buffercommand(&g, line); 328 owl_free(buff); 331 329 } 332 330 … … 334 332 { 335 333 owl_editwin *e; 336 char buff[1024];334 char *buff; 337 335 338 336 /* check the arguments */ … … 350 348 owl_editwin_clear(e); 351 349 owl_editwin_set_dotsend(e); 352 strcpy(buff, "----> "); 353 strcat(buff, line); 354 strcat(buff, "\n"); 350 buff=owl_sprintf("----> %s\n", line); 355 351 owl_editwin_set_locktext(e, buff); 356 352 357 /* make it active */358 353 owl_global_set_typwin_active(&g); 359 354 360 355 owl_global_set_buffercommand(&g, line); 356 owl_free(buff); 361 357 } 362 358
Note: See TracChangeset
for help on using the changeset viewer.