diff --git a/proc/devname.c b/proc/devname.c index f673a417..08ed131d 100644 --- a/proc/devname.c +++ b/proc/devname.c @@ -351,7 +351,7 @@ abbrev: if(chop + (unsigned long)(tmp-buf) < sizeof buf) tmp[chop] = '\0'; /* replace non-ASCII characters with '?' and return the number of chars */ - for(;;){ + while(i < chop){ c = *tmp; tmp++; if(!c) break;