diff options
author | Dan Williams <dcbw@redhat.com> | 2010-05-24 16:21:17 -0700 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2010-05-25 10:27:26 -0700 |
commit | b28a7726198cb7eb754b215c76d110c34f442b9c (patch) | |
tree | 1caa0b4ecd7321e377e7e4b2f143b32ee02e4181 | |
parent | 38107d2238e087f81701c61884310d6979cdfa0e (diff) |
Fix misuse of snprintf()
-rw-r--r-- | InfraStack/OSDependent/Linux/OSAL/Services/wimax_osal_config_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/InfraStack/OSDependent/Linux/OSAL/Services/wimax_osal_config_controller.c b/InfraStack/OSDependent/Linux/OSAL/Services/wimax_osal_config_controller.c index be32374..91aaafa 100644 --- a/InfraStack/OSDependent/Linux/OSAL/Services/wimax_osal_config_controller.c +++ b/InfraStack/OSDependent/Linux/OSAL/Services/wimax_osal_config_controller.c @@ -130,7 +130,7 @@ BOOL OSAL_ConfigController_SetNumValue(const char *ignore, const char *config_na xmlTargetElement = FindChild(xmlTopElement, config_name); if (xmlTargetElement != NULL) { //convert integer to string - snprintf(buf, sizeof(buf), "%d\0", *value); + snprintf(buf, sizeof(buf), "%d", *value); bSetInnerText = SetElementInnerText(xmlTargetElement, buf); if(bSetInnerText == TRUE) { // write to XML file |