sources/winc/_dlldummy.c: 2408: bad call to sprintf ?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cuneiform for Linux |
New
|
Undecided
|
Unassigned |
Bug Description
I just got the GNU C compiler to say
inlined from 'LT_GraphicsLin
/usr/include/
Source code is
sprintf (szTextBuffer,
"W %d H %d H/W %5.2f W/H %5.2f\n",
p -> nLetters,
p -> nRoots - p -> nLetters - p -> nDust,
p -> nDust,
p -> nRoots,
p -> Rect.xRight - p -> Rect.xLeft + 1,
p -> Rect.yBottom - p -> Rect.yTop + 1,
(p -> Rect.xRight - p -> Rect.xLeft + 1),
(p -> Rect.yBottom - p -> Rect.yTop + 1)
);
At least 37 bytes are written into szTextBuffer by this call. but it
is only 32 bytes long. Suggest increase to 40 bytes or so.