Skip to content

Commit

Permalink
Fix typo regarding byte size (from r2 d4dd6fd5e64dbc2682ad54989a71275…
Browse files Browse the repository at this point in the history
…66d1be865)
  • Loading branch information
radare committed Apr 10, 2018
1 parent cf4538f commit eb4d825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/json/path.c
Expand Up @@ -126,7 +126,8 @@ SDB_IPI Rangstr json_find (const char *s, Rangstr *rs) {
if (len > RESFIXSZ) {
res = calloc (len + 1, sizeof (RangstrType));
if (!res) {
eprintf ("Cannot allocate %d bytes\n", len + 1);
eprintf ("Cannot allocate %d byte%s\n",
len + 1, (len > 1)? "s": "");
return rangstr_null ();
}
}
Expand Down

0 comments on commit eb4d825

Please sign in to comment.