X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Ffold%2Ffold.c;h=fd23b066f3e58b49c107176d5957c8eaae68b845;hp=8bf133c8b34a9e0e37762eda8122dce4ac210141;hb=d28e414354d791a8c010cf6069bfc549d4343811;hpb=6ad2eb0b495e47c5be35acd5d63d53530a45e137 diff --git a/lib/fold/fold.c b/lib/fold/fold.c index 8bf133c..fd23b06 100644 --- a/lib/fold/fold.c +++ b/lib/fold/fold.c @@ -34,7 +34,7 @@ void fold_text(const char *text, bytes = mbrtowc(&wc, end, len - (end - text), &ps); - assert(bytes >= 0); + assert(bytes != (size_t)-1); /* we'll get a zero size for the nul terminator */ if (!bytes) {