diff options
-rw-r--r-- | xev.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -239,7 +239,7 @@ do_EnterNotify(XEvent *eventp) break; default: mode = dmode; - sprintf(dmode, "%u", e->mode); + snprintf(dmode, sizeof(dmode), "%u", e->mode); break; } @@ -270,7 +270,7 @@ do_EnterNotify(XEvent *eventp) break; default: detail = ddetail; - sprintf(ddetail, "%u", e->detail); + snprintf(ddetail, sizeof(ddetail), "%u", e->detail); break; } @@ -309,7 +309,7 @@ do_FocusIn(XEvent *eventp) break; default: mode = dmode; - sprintf(dmode, "%u", e->mode); + snprintf(dmode, sizeof(dmode), "%u", e->mode); break; } @@ -340,7 +340,7 @@ do_FocusIn(XEvent *eventp) break; default: detail = ddetail; - sprintf(ddetail, "%u", e->detail); + snprintf(ddetail, sizeof(ddetail), "%u", e->detail); break; } @@ -393,7 +393,7 @@ do_GraphicsExpose(XEvent *eventp) break; default: m = mdummy; - sprintf(mdummy, "%d", e->major_code); + snprintf(mdummy, sizeof(mdummy), "%d", e->major_code); break; } @@ -418,7 +418,7 @@ do_NoExpose(XEvent *eventp) break; default: m = mdummy; - sprintf(mdummy, "%d", e->major_code); + snprintf(mdummy, sizeof(mdummy), "%d", e->major_code); break; } @@ -445,7 +445,7 @@ do_VisibilityNotify(XEvent *eventp) break; default: v = vdummy; - sprintf(vdummy, "%d", e->state); + snprintf(vdummy, sizeof(vdummy), "%d", e->state); break; } @@ -544,7 +544,7 @@ do_ConfigureRequest(XEvent *eventp) break; default: detail = ddummy; - sprintf(ddummy, "%d", e->detail); + snprintf(ddummy, sizeof(ddummy), "%d", e->detail); break; } @@ -587,7 +587,7 @@ do_CirculateNotify(XEvent *eventp) break; default: p = pdummy; - sprintf(pdummy, "%d", e->place); + snprintf(pdummy, sizeof(pdummy), "%d", e->place); break; } @@ -610,7 +610,7 @@ do_CirculateRequest(XEvent *eventp) break; default: p = pdummy; - sprintf(pdummy, "%d", e->place); + snprintf(pdummy, sizeof(pdummy), "%d", e->place); break; } @@ -635,7 +635,7 @@ do_PropertyNotify(XEvent *eventp) break; default: s = sdummy; - sprintf(sdummy, "%d", e->state); + snprintf(sdummy, sizeof(sdummy), "%d", e->state); break; } @@ -711,7 +711,7 @@ do_ColormapNotify(XEvent *eventp) break; default: s = sdummy; - sprintf(sdummy, "%d", e->state); + snprintf(sdummy, sizeof(sdummy), "%d", e->state); break; } @@ -766,7 +766,7 @@ do_MappingNotify(XEvent *eventp) break; default: r = rdummy; - sprintf(rdummy, "%d", e->request); + snprintf(rdummy, sizeof(rdummy), "%d", e->request); break; } |