summaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-09-05 15:07:13 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-09-05 15:07:13 -0700
commita82e1dcc8ad095581402d05e5d1ae1bbf3646954 (patch)
tree8a0f0422af98d40d9dfa66c044a3566cbdf95b30 /expr.c
parentd2d06305e1834548edd8a647564efa222a511b53 (diff)
sprintf -> snprintf conversions
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;