comparison libnnchat.c @ 215:659b8229d015

Silence some warnings on OpenBSD.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 21 Nov 2010 04:12:16 +0200
parents 2e4850ece456
children 1211b740fbda
comparison
equal deleted inserted replaced
214:da539f54c9b0 215:659b8229d015
286 default: 286 default:
287 if (th_isalnum(*s)) 287 if (th_isalnum(*s))
288 PUSHCHAR(*s); 288 PUSHCHAR(*s);
289 else { 289 else {
290 char tmpStr[4]; 290 char tmpStr[4];
291 sprintf(tmpStr, "%2X", (unsigned char) *s); 291 snprintf(tmpStr, sizeof(tmpStr), "%2X", (unsigned char) *s);
292 PUSHCHAR('%'); 292 PUSHCHAR('%');
293 PUSHSTR(tmpStr); 293 PUSHSTR(tmpStr);
294 } 294 }
295 break; 295 break;
296 } 296 }