|
From: Nicholas N. <nj...@ca...> - 2004-04-02 13:08:51
|
CVS commit by nethercote:
Fix bug in hp2ps that caused the title to have negative numbers in it. Thanks
to Ral...@gm....
M +1 -1 Utilities.c 1.3 [POSSIBLY UNSAFE: printf]
--- valgrind/massif/hp2ps/Utilities.c #1.2:1.3
@@ -78,5 +78,5 @@ CommaPrint(fp,n)
} else {
CommaPrint(fp, n / ONETHOUSAND);
- fprintf(fp, ",%03d", (int)n % ONETHOUSAND);
+ fprintf(fp, ",%03d", (int)(n % ONETHOUSAND));
}
}
|