Removed all traces of sprintf() from all server code and

from all drivers.  All drivers compile without warnings.
This commit is contained in:
ddouthitt
2001-09-25 15:02:33 +00:00
parent 0307a9112e
commit 44e7f83dfd
8 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -226,9 +226,9 @@ sli_flush_box (int lft, int top, int rgt, int bot)
/* I like having hex, everywhere and all the time */
for (y = top; y <= bot; y++) {
if (y == 1)
sprintf (out, "%c%c", 0x0FE, 0x080 + lft);
snprintf (out, sizeof(out), "%c%c", 0x0FE, 0x080 + lft);
if (y == 2)
sprintf (out, "%c%c", 0x0FE, 0x0C0 + lft);
snprintf (out, sizeof(out), "%c%c", 0x0FE, 0x0C0 + lft);
write (fd, out, 0x002);
write (fd, lcd.framebuf + (y * lcd.wid) + lft, rgt - lft + 1);
}