summaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/expr.c b/expr.c
index 60ea443..e116688 100644
--- a/expr.c
+++ b/expr.c
@@ -88,7 +88,7 @@ exprOpText(unsigned type)
strcpy(buf, "plus sign");
break;
default:
- sprintf(buf, "illegal(%d)", type);
+ snprintf(buf, sizeof(buf), "illegal(%d)", type);
break;
}
return buf;
@@ -120,7 +120,7 @@ exprTypeText(unsigned type)
strcpy(buf, "keyname");
break;
default:
- sprintf(buf, "illegal(%d)", type);
+ snprintf(buf, sizeof(buf), "illegal(%d)", type);
break;
}
return buf;