about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-01-31 01:06:12 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-01-31 01:06:12 +0000
commit43d27be85fa39cc606d8e9e5c685fce9adb7092f (patch)
tree16e4776a4e6ad4a8c7711a68734d0ae9a5fe99da
parenta58038cc201dae56aac1b55c2f8ec70724d760d1 (diff)
downloadnetpbm-mirror-43d27be85fa39cc606d8e9e5c685fce9adb7092f.tar.gz
netpbm-mirror-43d27be85fa39cc606d8e9e5c685fce9adb7092f.tar.xz
netpbm-mirror-43d27be85fa39cc606d8e9e5c685fce9adb7092f.zip
Set don't care bits to zero to make output more usable for tests
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4269 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--generator/pbmnoise.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generator/pbmnoise.c b/generator/pbmnoise.c
index 9a537d5c..e316dafc 100644
--- a/generator/pbmnoise.c
+++ b/generator/pbmnoise.c
@@ -405,6 +405,7 @@ pbmnoise_packed(FILE *             const ofP,
 
             wordSave = bitrowByWord[words - 1];
 
+            pbm_cleanrowend_packed(bitrow0, cols);
             pbm_writepbmrow_packed(ofP, bitrow0, cols, 0);
             offset = cols % 32;
         } else {