Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 91736
Collapse All | Expand All

(-)/tmp/4fCGVl7C4o/xtradius-1.2.1-beta2/contrib/authmysql/authmysql.c (+3 lines)
Lines 61-69 Link Here
61
61
62
*/
62
*/
63
63
64
    if (strstr(argv[1], "'") == NULL){
64
    command_length = strlen(SQL_SELECT) + strlen(argv[1]) + strlen(argv[2]);
65
    command_length = strlen(SQL_SELECT) + strlen(argv[1]) + strlen(argv[2]);
65
         command = (char *) malloc(command_length*sizeof(char)); 
66
         command = (char *) malloc(command_length*sizeof(char)); 
66
             sprintf(command,SQL_SELECT,argv[1]);
67
             sprintf(command,SQL_SELECT,argv[1]);
68
    }
69
    else exit(-1);
67
70
68
71
69
/*
72
/*

Return to bug 91736