summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/linux/up-device-wup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-device-wup.c b/src/linux/up-device-wup.c
index b2f5c96..914741e 100644
--- a/src/linux/up-device-wup.c
+++ b/src/linux/up-device-wup.c
@@ -213,7 +213,7 @@ up_device_wup_parse_command (UpDeviceWup *wup, const gchar *data)
/* replace the first ';' char with a NULL if it exists */
length = strlen (packet);
for (i=0; i<length; i++) {
- if (packet[i] < 0x20 && packet[i] > 0x7e)
+ if (packet[i] < 0x20 || packet[i] > 0x7e)
packet[i] = '?';
if (packet[i] == ';') {
packet[i] = '\0';