]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdmain.c
Code cleanup
[proxmark3-svn] / client / cmdmain.c
index 7bba80f4cbe784967689f6e06858ee3f3d5d36fe..c1d730ee636f13cf92b01f59b71b607ad1791a20 100644 (file)
@@ -177,10 +177,11 @@ void UsbCommandReceived(UsbCommand *UC)
        switch(UC->cmd) {
                // First check if we are handling a debug message
                case CMD_DEBUG_PRINT_STRING: {
        switch(UC->cmd) {
                // First check if we are handling a debug message
                case CMD_DEBUG_PRINT_STRING: {
-                       char s[USB_CMD_DATA_SIZE+1] = {0x00};
+                       char s[USB_CMD_DATA_SIZE+1];
+                       memset(s, 0x00, sizeof(s));
                        size_t len = MIN(UC->arg[0],USB_CMD_DATA_SIZE);
                        memcpy(s,UC->d.asBytes,len);
                        size_t len = MIN(UC->arg[0],USB_CMD_DATA_SIZE);
                        memcpy(s,UC->d.asBytes,len);
-                       PrintAndLog("#db# %s       ", s);
+                       PrintAndLog("#db# %s", s);
                        return;
                } break;
 
                        return;
                } break;
 
Impressum, Datenschutz