diff options
author | Adam Domurad <[email protected]> | 2012-05-25 11:23:47 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2012-05-25 11:23:47 -0400 |
commit | ef79a2eab042f66aa10a2356d9a6f80f5b8d544f (patch) | |
tree | 0f92b13bf74dc49b19607174e37bb176d555678a /plugin/icedteanp/IcedTeaPluginUtils.h | |
parent | cfc204f1f531f9c867534ea2eca5eca216c99c04 (diff) |
Introduced constant NUM_STR_BUFFER_SIZE to replace magic constants.
Clarified some uses of snprintf.
Diffstat (limited to 'plugin/icedteanp/IcedTeaPluginUtils.h')
-rw-r--r-- | plugin/icedteanp/IcedTeaPluginUtils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/icedteanp/IcedTeaPluginUtils.h b/plugin/icedteanp/IcedTeaPluginUtils.h index 6a168da..9382a94 100644 --- a/plugin/icedteanp/IcedTeaPluginUtils.h +++ b/plugin/icedteanp/IcedTeaPluginUtils.h @@ -96,6 +96,10 @@ exception statement from your version. */ (*c >= 'a' && *c <= 'f') || \ (*c >= 'A' && *c <= 'F')) +//long long max ~ 19 chars + terminator +//leave some room for converting strings like "<var> = %d" +const size_t NUM_STR_BUFFER_SIZE = 32; + /* * This struct holds data specific to a Java operation requested by the plugin */ |