diff options
author | Guillem Jover <guillem@debian.org> | 2011-02-19 19:34:56 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2011-03-02 07:26:41 +0100 |
commit | 21e9a2d3ce24bee668d1d108752c8d2fd6dc8f8b (patch) | |
tree | ea825ef0401a850c2b34d0aea101a7d1d9bba17e /lib | |
parent | f1bccd4763343d0897db3361022fec8ab5411a34 (diff) | |
download | dpkg-21e9a2d3ce24bee668d1d108752c8d2fd6dc8f8b.tar.gz |
libdpkg: Use format precision instead of strnlen() in convert_string()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/fields.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dpkg/fields.c b/lib/dpkg/fields.c index e1f650eba..5ebd8b02f 100644 --- a/lib/dpkg/fields.c +++ b/lib/dpkg/fields.c @@ -47,8 +47,7 @@ convert_string(struct parsedb_state *ps, const struct pkginfo *pigp, nvip = namevalue_find_by_name(ivip, startp); if (nvip == NULL) { if (otherwise != -1) return otherwise; - parse_error(ps, pigp, _("`%.*s' is not allowed for %s"), - (int)strnlen(startp, 50), startp, what); + parse_error(ps, pigp, _("'%.50s' is not allowed for %s"), startp, what); } ep = startp + nvip->length; |