summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pwgui/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pwgui/main.cpp b/src/pwgui/main.cpp
index fa131b1..5dc2060 100644
--- a/src/pwgui/main.cpp
+++ b/src/pwgui/main.cpp
@@ -107,7 +107,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "ERROR: Could not read print job from STDIN.\n");
remove(tmpfile);
return CUPS_BACKEND_FAILED;
- }
+ }
if ((ret = write(fh, buffer, bytes)) != bytes) {
fprintf(stderr, "ERROR: Could not write %d bytes to %s (wrote %d)\n", (int)bytes, tmpfile, (int)ret);
remove(tmpfile);
@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
total += bytes;
}
close(fh);
- fprintf(stderr, "ERROR: Read %d bytes from stdin.\n", total);
+ fprintf(stderr, "ERROR: Read %d bytes from stdin.\n", total);
//
} else {
// File given, check if file exists
@@ -260,7 +260,7 @@ static bool helper_getpiduid(char *user, char *title)
snprintf(tmp, 100, "/proc/%d/environ", p);
int fh = open(tmp, O_RDONLY);
if (fh >= 0) {
- char *ptr = gui_env;
+ char *ptr = gui_env;
int bytes = 0, ret;
while ((ret = read(fh, ptr, ENVLEN - (ptr - gui_env) - 2)) > 0) {
bytes += ret;