Browse Source

Patch for snprintf provided by Marco Atzeri

pre-master-46
Holger Vogt 2 years ago
parent
commit
f99a137eb3
  1. 2
      src/xspice/icm/digital/d_cosim/cfunc.mod

2
src/xspice/icm/digital/d_cosim/cfunc.mod

@ -39,7 +39,7 @@ char *dlerror(void) // Lifted from dev.c.
if (rc == 0) { /* FormatMessage failed */
(void) sprintf(errstr, errstr_fmt, (unsigned long) GetLastError());
} else {
snprintf(errstr, sizeof errstr, lpMsgBuf);
snprintf(errstr, sizeof errstr, errstr_fmt, lpMsgBuf);
LocalFree(lpMsgBuf);
}
return errstr;

Loading…
Cancel
Save