mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
J.F.'s latest printer fixes plus his gcc -picky fix for web/cgi.c
Jeremy.
This commit is contained in:
parent
80e0f7e107
commit
bd4e2972f5
@ -323,8 +323,10 @@ static BOOL parse_lpq_lprng(char *line,print_queue_struct *buf,BOOL first)
|
||||
char *tokarr[LPRNG_MAXTOK];
|
||||
char *cptr;
|
||||
int num_tok = 0;
|
||||
pstring line2;
|
||||
|
||||
tokarr[0] = strtok(line," \t");
|
||||
pstrcpy(line2,line);
|
||||
tokarr[0] = strtok(line2," \t");
|
||||
num_tok++;
|
||||
while (((tokarr[num_tok] = strtok(NULL," \t")) != NULL)
|
||||
&& (num_tok < LPRNG_MAXTOK)) {
|
||||
|
@ -411,7 +411,7 @@ void cgi_setup(char *rootdir, int auth_required)
|
||||
char *x;
|
||||
|
||||
/* Save the users name if available */
|
||||
if (x = getenv("REMOTE_USER")) {
|
||||
if ((x = getenv("REMOTE_USER"))!=NULL) {
|
||||
C_user = strdup(x);
|
||||
} else {
|
||||
C_user = "";
|
||||
|
Loading…
Reference in New Issue
Block a user