dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Current wps.c

Current wps.c

From: Magnus Holmgren <>
Date: Fri, 30 Aug 2002 09:57:59 +0200 (CEST)


Don't know if this has been discussed, but there's one small detail about the current code in wps.c that bugs me: "misuse" of snprintf.

The "problem" is lines like these:


Two things:

1) What's wrong with strcpy (or strncpy)?
2) You can get a "%" in the buffer by using "%%" in the format string.

(Don't take this the wrong way; it's meant as constructive critisism of what is really a minor detail.)


Received on 2002-08-30

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy