Fix CID 1147120

This commit is contained in:
Anton Kochkov 2014-04-27 04:53:26 +04:00
parent 73e2047e4f
commit beab537a55

View File

@ -308,7 +308,7 @@ R_API int r_cmd_macro_add(RCmdMacro *mac, const char *oname) {
pbody[lidx]='\0';
}
strncpy (macro->code, pbody, macro->codelen);
macro->code[macro->codelen] = 0;
macro->code[macro->codelen-1] = 0;
//strcat (macro->code, ",");
#if 0
} else {