]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/attr.c
Ignore UTF-8 marker at the start of .conf files.
[bacula/bacula] / bacula / src / lib / attr.c
index 34a0088d94b595bf685cbe74ee290452c52f5950..ac509288cd641fd6c447cb882b27e45f3fbb3470 100644 (file)
@@ -59,7 +59,7 @@ int unpack_attributes_record(JCR *jcr, int32_t stream, char *rec, ATTR *attr)
     */
    attr->stream = stream;
    Dmsg1(400, "Attr: %s\n", rec);
-   if (sscanf(rec, "%d %d", &attr->file_index, &attr->type) != 2) {
+   if (sscanf(rec, "%ld %ld", &attr->file_index, &attr->type) != 2) {
       Jmsg(jcr, M_FATAL, 0, _("Error scanning attributes: %s\n"), rec);
       Dmsg1(100, "\nError scanning attributes. %s\n", rec);
       return 0;