summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-09 00:17:16 +0000
committerJeremy Allison <jra@samba.org>2004-03-09 00:17:16 +0000
commitfe5801d065a140dc79bec3ff4c41024470ab5cfd (patch)
treec263796ab285d7122bbea5f9ad66bea02ef8fd66 /source3/printing
parent2337d3e1a543724083d11897de296b91200906ab (diff)
downloadsamba-fe5801d065a140dc79bec3ff4c41024470ab5cfd.tar.gz
samba-fe5801d065a140dc79bec3ff4c41024470ab5cfd.tar.bz2
samba-fe5801d065a140dc79bec3ff4c41024470ab5cfd.zip
Added strstr_m() function. Use in all places where we might run into mb
(should fix the mb service name problem, can't remember the bugid). Jeremy. (This used to be commit 93c2d50f1adbf257c0c0185b420a1d73d56be2f9)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/lpq_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/lpq_parse.c b/source3/printing/lpq_parse.c
index 111617e3ae..b7e41964f1 100644
--- a/source3/printing/lpq_parse.c
+++ b/source3/printing/lpq_parse.c
@@ -989,21 +989,21 @@ BOOL parse_lpq_entry(int snum,char *line,
switch (status->status) {
case LPSTAT_OK:
for (i=0; stat0_strings[i]; i++)
- if (strstr(line,stat0_strings[i])) {
+ if (strstr_m(line,stat0_strings[i])) {
fstrcpy(status->message,line);
status->status=LPSTAT_OK;
return ret;
}
case LPSTAT_STOPPED:
for (i=0; stat1_strings[i]; i++)
- if (strstr(line,stat1_strings[i])) {
+ if (strstr_m(line,stat1_strings[i])) {
fstrcpy(status->message,line);
status->status=LPSTAT_STOPPED;
return ret;
}
case LPSTAT_ERROR:
for (i=0; stat2_strings[i]; i++)
- if (strstr(line,stat2_strings[i])) {
+ if (strstr_m(line,stat2_strings[i])) {
fstrcpy(status->message,line);
status->status=LPSTAT_ERROR;
return ret;