diff dep/animone/src/fd/proc.cc @ 309:bf89fbf7ff38

misc: remove copyrighted app icon if someone comes up with a good icon, please be my guest
author Paper <paper@paper.us.eu.org>
date Tue, 11 Jun 2024 04:24:59 -0400
parents b1f625b0227c
children a4257370de16
line wrap: on
line diff
--- a/dep/animone/src/fd/proc.cc	Tue Jun 11 04:24:19 2024 -0400
+++ b/dep/animone/src/fd/proc.cc	Tue Jun 11 04:24:59 2024 -0400
@@ -6,6 +6,7 @@
 #include <fstream>
 #include <sstream>
 #include <string>
+#include <algorithm>
 
 #include <fcntl.h>
 #include <sys/stat.h>
@@ -80,7 +81,7 @@
 	if (!util::ReadFile(path, result))
 		return false;
 
-	result.erase(std::remove(result.begin(), result.end(), '\n'), result.end());
+	result.erase(std::remove(result.begin(), result.end(), '\n'), result.cend());
 	return true;
 }