diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-06-23 23:17:23 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-06-23 23:17:23 +0000 |
commit | 1100d302ffd3db7de42acbd3044281cbf96d777f (patch) | |
tree | 029215b1107ea2715e69f6a2b065c15ee7b7d133 /usr.sbin/pkg_install/create | |
parent | 30cb72a00b8cc59895c391cad0f8e31611611ec4 (diff) |
Fix snprintf return value usage.
Diffstat (limited to 'usr.sbin/pkg_install/create')
-rw-r--r-- | usr.sbin/pkg_install/create/pl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/create/pl.c b/usr.sbin/pkg_install/create/pl.c index 15df3e6e622..fd72b88d666 100644 --- a/usr.sbin/pkg_install/create/pl.c +++ b/usr.sbin/pkg_install/create/pl.c @@ -1,7 +1,7 @@ -/* $OpenBSD: pl.c,v 1.2 1996/06/04 08:43:36 niklas Exp $ */ +/* $OpenBSD: pl.c,v 1.3 1998/06/23 23:17:22 millert Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: pl.c,v 1.2 1996/06/04 08:43:36 niklas Exp $"; +static const char *rcsid = "$OpenBSD: pl.c,v 1.3 1998/06/23 23:17:22 millert Exp $"; #endif /* @@ -171,7 +171,7 @@ copy_plist(char *home, Package *plist) p->name); last_chdir = home; } - if (add_count > maxargs - where_count) + if (add_count >= maxargs - where_count) barf("oops, miscounted strings!"); where_count += add_count; } @@ -205,7 +205,7 @@ copy_plist(char *home, Package *plist) " -C %s %s", mythere ? mythere : where, p->name); - if (add_count > maxargs - where_count) + if (add_count >= maxargs - where_count) barf("oops, miscounted strings!"); where_count += add_count; last_chdir = (mythere ? mythere : where); |