summaryrefslogtreecommitdiff
path: root/xev.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2018-10-06 12:49:26 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2018-10-06 12:49:26 -0700
commit6cb245a4cadff580e0e5b0739f052ca74d9097b9 (patch)
tree653f9c1906eec6731d3931a0f15c2819397d437f /xev.c
parentfe3bbae5c75b5bb9bc34f9b3ae93b1bc66708691 (diff)
Replace sprintf calls with snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xev.c')
-rw-r--r--xev.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/xev.c b/xev.c
index d787509..4c6115f 100644
--- a/xev.c
+++ b/xev.c
@@ -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;
}