small bug fix preventing full items list to be copied

This commit is contained in:
Om Raheja 2024-09-03 12:27:20 -04:00
parent 769a230a0e
commit 7d99b1b1b3
4 changed files with 34 additions and 1 deletions

View File

@ -131,7 +131,7 @@ main(int argc, char *argv[])
mem->rl.rank_count = rsstdin(mem->rl.rank);
// manual copy with for loop
for (int i = 0; i < items->rank_count; i++) {
for (int i = 0; i < mem->rl.rank_count; i++) {
strncpy(mem->rl.srank[0][i].name, mem->rl.rank[i], M_STR_LEN);
}

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.weightedrank</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View File

@ -0,0 +1,13 @@
---
triple: 'arm64-apple-darwin'
binary-path: weightedrank
relocations:
- { offsetInCU: 0x26, offset: 0x26, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x1000029C0, symSize: 0x8D8 }
- { offsetInCU: 0x59, offset: 0x59, size: 0x8, addend: 0x0, symName: _long_options, symObjAddr: 0x1510, symBinAddr: 0x100008000, symSize: 0x0 }
- { offsetInCU: 0xC4, offset: 0xC4, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x1000029C0, symSize: 0x8D8 }
- { offsetInCU: 0x214, offset: 0x214, size: 0x8, addend: 0x0, symName: _usage, symObjAddr: 0x918, symBinAddr: 0x1000032D8, symSize: 0x1C }
- { offsetInCU: 0x22A, offset: 0x22A, size: 0x8, addend: 0x0, symName: _rsstdin, symObjAddr: 0x934, symBinAddr: 0x1000032F4, symSize: 0x1A8 }
- { offsetInCU: 0x27C, offset: 0x27C, size: 0x8, addend: 0x0, symName: _rank, symObjAddr: 0xADC, symBinAddr: 0x10000349C, symSize: 0x2BC }
- { offsetInCU: 0x310, offset: 0x310, size: 0x8, addend: 0x0, symName: _print_ranklist, symObjAddr: 0xD98, symBinAddr: 0x100003758, symSize: 0xE8 }
- { offsetInCU: 0x353, offset: 0x353, size: 0x8, addend: 0x0, symName: _isort, symObjAddr: 0xE80, symBinAddr: 0x100003840, symSize: 0x230 }
...