From: hackbard Date: Sat, 5 Jun 2004 02:09:02 +0000 (+0000) Subject: testing display related segfaults .. :( X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=40031b2d692a7b83e437535045ece6c58f8bf31e;p=my-code%2Fivac.git testing display related segfaults .. :( --- diff --git a/src/ivac.c b/src/ivac.c index 281b1a5..e959ef8 100644 --- a/src/ivac.c +++ b/src/ivac.c @@ -138,7 +138,7 @@ int main(int argc,char **argv) { /* display init */ display_init(&(ivac.display)); - + /* display */ ivac_display(&ivac); ivac_display_content(&ivac); @@ -315,6 +315,12 @@ int ivac_event_cb(t_event *event,void *ptr) { int ivac_regular_cb(t_event *event,void *ptr) { + t_ivac *ivac; + + ivac=(t_ivac *)ptr; + + ivac_add_to_monitor(ivac,"event HUGH"); + /* usual jobs like audio & video transmit ... */ return SUCCESS; @@ -343,18 +349,8 @@ int ivac_parse_command(t_input *input,void *ptr) { ivac_add_to_monitor(ivac,"nach display refresh"); #endif -#ifdef DEBUG - ivac_add_to_monitor(ivac,"nach display refresh"); -#endif - -#ifdef DEBUG - - strcpy(debug_string,"hahahaha!"); - ivac_add_to_monitor(ivac,debug_string); -#endif - /* parse command routines */ - if(data[input->c_count-1]=='\n' || data[input->c_count-1]=='\r') { + if(data[input->c_count-1]=='\n'||data[input->c_count-1]=='\r') { #ifdef DEBUG ivac_add_to_monitor(ivac,"got newline or carriage return!"); @@ -366,11 +362,11 @@ int ivac_parse_command(t_input *input,void *ptr) { /* get args */ len=0; - while(data[len]!='\n') len++; + while(data[len]!='\n'||data[len]!='\r') len++; i=0; j=0; while((i