]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Update to r8614: another -D_FORTIFY_SOURCE=2 fix.
authorSimon Tatham <anakin@pobox.com>
Sat, 20 Feb 2010 11:21:25 +0000 (11:21 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 20 Feb 2010 11:21:25 +0000 (11:21 +0000)
[originally from svn r8875]
[r8614 == 4bddcc2b5dd6467ce9aa8bebea9ceedcda8903e5]

unix/uxprint.c

index 7d01aeb4fb65bcfb727e8c7964caf351527fec77..3724100725538f5c509577e14524b8e4fd0826ef 100644 (file)
@@ -30,7 +30,8 @@ void printer_job_data(printer_job *pj, void *data, int len)
     if (!pj)
        return;
 
-    fwrite(data, 1, len, pj->fp);
+    if (fwrite(data, 1, len, pj->fp) < len)
+       /* ignore */;
 }
 
 void printer_finish_job(printer_job *pj)