Ticket #116: version-in-about-dialog.patch

File version-in-about-dialog.patch, 1.2 KB (added by rettub, 2 years ago)
  • vuurmuur-conf/src/help.c

    diff --git a/vuurmuur-conf/src/help.c b/vuurmuur-conf/src/help.c
    index cf49fd3..244e5c4 100644
    a b print_about(const int debuglvl) 
    11521152    int     key_choices_n = 1; 
    11531153    char    *cmd_choices[] =    { gettext("back") }; 
    11541154    int     cmd_choices_n = 1; 
     1155    char    about_version_string[sizeof(version_string)]; 
     1156 
     1157    /* create the about version string */ 
     1158    snprintf(about_version_string, sizeof(about_version_string), "Version: %s\n", version_string); 
    11551159 
    11561160    /* get screensize */ 
    11571161    getmaxyx(stdscr, max_height, max_width); 
    print_about(const int debuglvl) 
    11681172    (void)read_helpline(debuglvl, &about_list, "=============\n"); 
    11691173    (void)read_helpline(debuglvl, &about_list, "\n"); 
    11701174    (void)read_helpline(debuglvl, &about_list, "\n"); 
     1175    (void)read_helpline(debuglvl, &about_list, about_version_string); 
     1176    (void)read_helpline(debuglvl, &about_list, "\n"); 
    11711177    (void)read_helpline(debuglvl, &about_list, "Copyright 2003-2007 (c) Victor Julien <victor(at)vuurmuur(dot)org>.\n"); 
    11721178    (void)read_helpline(debuglvl, &about_list, "This program is distributed under the terms of the GPL.\n"); 
    11731179    (void)read_helpline(debuglvl, &about_list, "\n");