forked from github/server
CID 22466 Division or modulo by zero
This commit is contained in:
parent
103c480c91
commit
1f055b3175
1 changed files with 1 additions and 2 deletions
|
@ -421,8 +421,7 @@ const char *abkz(const char *s, char *buf, size_t buflen, size_t maxchars)
|
|||
}
|
||||
|
||||
/* Buchstaben pro Teilkürzel = _max(1,max/AnzWort) */
|
||||
|
||||
bpt = _max(1, maxchars / c);
|
||||
bpt = (c > 0) ? _max(1, maxchars / c) : 1;
|
||||
|
||||
/* Einzelne Wörter anspringen und jeweils die ersten BpT kopieren */
|
||||
|
||||
|
|
Loading…
Reference in a new issue