diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-01-08 00:39:02 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-01-08 00:39:02 +0000 |
commit | 080811b190031b9182e96dc76fc610fadfeaec21 (patch) | |
tree | a8e952f994af53c47ca5bc9d41f6d171f17009ad /cgi-bin/var.c | |
parent | 3d052e433049a9cd5a7a1b7934b8a39badc8102b (diff) |
Merge changes from CUPS 1.4svn-r7199.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@577 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cgi-bin/var.c')
-rw-r--r-- | cgi-bin/var.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cgi-bin/var.c b/cgi-bin/var.c index 8d4dab9ea..a142e9ccb 100644 --- a/cgi-bin/var.c +++ b/cgi-bin/var.c @@ -784,11 +784,15 @@ cgi_initialize_post(void) for (tbytes = 0; tbytes < length; tbytes += nbytes) if ((nbytes = read(0, data + tbytes, length - tbytes)) < 0) + { if (errno != EAGAIN) { free(data); return (0); } + else + nbytes = 0; + } data[length] = '\0'; |