minor modification 4e74263b
a@null · 2008-12-09 21:55 1 file(s) · +1 −4
dmenu.c +1 −4
396 396
	default:
397 397
		if(num && !iscntrl((int) buf[0])) {
398 398
			buf[num] = 0;
399 -
			if(len > 0)
400 -
				strncat(text, buf, sizeof text);
401 -
			else
402 -
				strncpy(text, buf, sizeof text);
399 +
			strncpy(text + len, buf, sizeof text - len);
403 400
			match(text);
404 401
		}
405 402
		break;