Subversion Repositories Kolibri OS

Rev

Rev 6589 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6589 Rev 6601
Line 27... Line 27...
27
    va_list vl;
27
    va_list vl;
28
    va_start(vl, def_but);
28
    va_start(vl, def_but);
Line 29... Line 29...
29
 
29
 
30
    msgbox* box = calloc(sizeof(msgbox), 1);
30
    msgbox* box = calloc(sizeof(msgbox), 1);
31
    box->retval = (uint8_t)def_but;
31
    box->retval = (uint8_t)def_but;
32
    char    *pc = box->texts,
-
 
33
            *but_text = va_arg(vl, char*);
32
    char    *pc = box->texts;
34
    strcpy(pc, title);
33
    strcpy(pc, title);
-
 
34
    pc += strlen(title) + 1;
-
 
35
    strcpy(pc, text);
Line -... Line 36...
-
 
36
    pc += strlen(text) + 1;
35
    pc += strlen(title) + 1;
37
 
36
 
38
    char  *but_text = va_arg(vl, char*);
37
    while (but_text)
39
    while (but_text)
38
    {
40
    {
39
        strcpy(pc, but_text);
41
        strcpy(pc, but_text);
-
 
42
        pc += strlen(but_text) + 1;
40
        pc += strlen(but_text) + 1;
43
        // assert(pc - box->texts < sizeof box->texts);
Line 41... Line 44...
41
        // assert(pc - box->texts < sizeof box->texts);
44
        but_text = va_arg(vl, char*);
Line 42... Line 45...
42
    }
45
    }