diff options
Diffstat (limited to 'usr/src/cmd/lp/lib/papi/ppd.c')
-rw-r--r-- | usr/src/cmd/lp/lib/papi/ppd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/lp/lib/papi/ppd.c b/usr/src/cmd/lp/lib/papi/ppd.c index 57d42c8841..26fcced189 100644 --- a/usr/src/cmd/lp/lib/papi/ppd.c +++ b/usr/src/cmd/lp/lib/papi/ppd.c @@ -54,7 +54,7 @@ process_line(char *line, char **key, char **value, char **comment) * or * *key value/comment: data */ - *ptr++ = NULL; + *ptr++ = '\0'; while (isspace(*ptr) != 0) ptr++; @@ -64,7 +64,7 @@ process_line(char *line, char **key, char **value, char **comment) * line is in the form: * *key value/comment: data */ - *ptr++ = NULL; + *ptr++ = '\0'; while (*ptr == ' ') ptr++; } @@ -75,7 +75,7 @@ process_line(char *line, char **key, char **value, char **comment) *value = ptr; if ((ptr = strchr(ptr, '/')) != NULL) { - *ptr++ = NULL; + *ptr++ = '\0'; *comment = ptr; } } @@ -107,7 +107,7 @@ PPDFileToAttributesList(papi_attribute_t ***attributes, char *filename) continue; if ((text = strrchr(line, '\n')) != NULL) - *text = NULL; + *text = '\0'; process_line(line, &key, &value, &text); |