Changeset 131 for abuse/trunk/src/imlib/status.cpp
- Timestamp:
- Mar 22, 2008, 11:03:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/status.cpp
r129 r131 9 9 10 10 #include "config.h" 11 12 #include <string.h> 11 13 12 14 #include "macs.hpp" … … 24 26 int last_update; 25 27 text_status_node(char const *Name, visual_object *Show, text_status_node *Next) 26 { name =strcpy((char *)malloc(strlen(Name)+1),Name);27 show =Show;28 next =Next;29 last_update =0;28 { name = strdup(Name); 29 show = Show; 30 next = Next; 31 last_update = 0; 30 32 } 31 33 ~text_status_node() { free(name); if (show) delete show; }
Note: See TracChangeset
for help on using the changeset viewer.