Skip to content

Commit

Permalink
Merge pull request #54 from czchen/bugfix/format-security
Browse files Browse the repository at this point in the history
Fix format-security warnings
  • Loading branch information
definite committed Jun 23, 2015
2 parents 4d19640 + 174e482 commit 4ba4f41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GSettingsBackend.c
Expand Up @@ -134,7 +134,7 @@ gchar *mkdg_g_variant_to_string(GVariant * gVar)
g_snprintf(result, MAKER_DIALOG_VALUE_LENGTH, "%ld",
g_variant_get_int64(gVar));
} else if (g_variant_type_is_subtype_of(gVType, G_VARIANT_TYPE_STRING)) {
g_snprintf(result, MAKER_DIALOG_VALUE_LENGTH,
g_snprintf(result, MAKER_DIALOG_VALUE_LENGTH, "%s",
g_variant_get_string(gVar, NULL));
}
return result;
Expand Down
2 changes: 1 addition & 1 deletion src/MakerDialogUtil.c
Expand Up @@ -120,7 +120,7 @@ gchar *mkdg_g_value_to_string(GValue * value)
g_snprintf(result, MAKER_DIALOG_VALUE_LENGTH, "%d", intValue);
break;
case G_TYPE_STRING:
g_snprintf(result, MAKER_DIALOG_VALUE_LENGTH,
g_snprintf(result, MAKER_DIALOG_VALUE_LENGTH, "%s",
g_value_get_string(value));
break;
default:
Expand Down

0 comments on commit 4ba4f41

Please sign in to comment.