Commit 2e26f541 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Hmm 512 bytes to format a decimal integer sounds a little abusive

parent ebf89221
...@@ -119,9 +119,9 @@ int E_(SSPopN)( rpn_stack_t *st, mvar_t *vars ) ...@@ -119,9 +119,9 @@ int E_(SSPopN)( rpn_stack_t *st, mvar_t *vars )
void E_(SSPushN)( rpn_stack_t *st, int i ) void E_(SSPushN)( rpn_stack_t *st, int i )
{ {
char v[512]; char v[12];
sprintf( v, "%d", i ); snprintf( v, sizeof (v), "%d", i );
E_(SSPush)( st, v ); E_(SSPush)( st, v );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment